diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 3294d07..99f3be2 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -15,6 +15,7 @@ $config = new PhpCsFixer\Config(); return $config->setRules(array( '@PSR2' => true, + '@PSR12' => true, '@PHP71Migration' => true, 'array_syntax' => ['syntax' => 'long'], 'class_attributes_separation' => true, diff --git a/lib/Algorithm.php b/lib/Algorithm.php index 82eda72..185b2d8 100644 --- a/lib/Algorithm.php +++ b/lib/Algorithm.php @@ -1,4 +1,6 @@ -format) { case 'svg': - $backend = new SvgImageBackEnd; + $backend = new SvgImageBackEnd(); break; case 'eps': - $backend = new EpsImageBackEnd; + $backend = new EpsImageBackEnd(); break; default: $backend = new ImagickImageBackEnd($this->format); diff --git a/lib/Providers/Qr/BaseHTTPQRCodeProvider.php b/lib/Providers/Qr/BaseHTTPQRCodeProvider.php index e18f131..a0c3d82 100644 --- a/lib/Providers/Qr/BaseHTTPQRCodeProvider.php +++ b/lib/Providers/Qr/BaseHTTPQRCodeProvider.php @@ -1,4 +1,6 @@ -