avoid global pollution

This commit is contained in:
Shish 2023-01-10 22:37:35 +00:00
parent 165eea11b1
commit 90c419b0c4

View file

@ -1,17 +1,17 @@
<?php <?php
$finder = PhpCsFixer\Finder::create() $_phpcs_finder = PhpCsFixer\Finder::create()
->exclude('ext/amazon_s3/lib') ->exclude('ext/amazon_s3/lib')
->exclude('vendor') ->exclude('vendor')
->exclude('data') ->exclude('data')
->in(__DIR__) ->in(__DIR__)
; ;
$config = new PhpCsFixer\Config(); $_phpcs_config = new PhpCsFixer\Config();
return $config->setRules([ return $_phpcs_config->setRules([
'@PSR12' => true, '@PSR12' => true,
//'strict_param' => true, //'strict_param' => true,
'array_syntax' => ['syntax' => 'short'], 'array_syntax' => ['syntax' => 'short'],
]) ])
->setFinder($finder) ->setFinder($_phpcs_finder)
; ;