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
|
||||
|
||||
$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)
|
||||
;
|
Reference in a new issue