:octocat: fix PHPCS config, add Slevomat rules

This commit is contained in:
smiley
2024-07-21 14:54:15 +02:00
parent 89cdd09044
commit f32696c8a7
97 changed files with 462 additions and 654 deletions
+1 -4
View File
@@ -26,9 +26,6 @@ require_once __DIR__.'/../vendor/autoload.php';
// the extended SVG output module
class RandomDotsSVGOutput extends QRMarkupSVG{
/**
* @inheritDoc
*/
protected function path(string $path, int $M_TYPE):string{
// omit the "fill" and "opacity" attributes on the path element
return sprintf('<path class="%s" d="%s"/>', $this->getCssClass($M_TYPE), $path);
@@ -160,7 +157,7 @@ $out = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgX
// dump the output
if(php_sapi_name() !== 'cli'){
if(PHP_SAPI !== 'cli'){
header('content-type: image/svg+xml');
}