mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-19 10:15:21 +00:00
:octocat: fix PHPCS config, add Slevomat rules
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user