avoid global pollution
This commit is contained in:
parent
165eea11b1
commit
90c419b0c4
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
;
|
;
|
Reference in a new issue