avoid global pollution

This commit is contained in:
Shish 2023-01-10 22:37:35 +00:00
parent 165eea11b1
commit 90c419b0c4
1 changed files with 4 additions and 4 deletions

View File

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