add php cs fixer
This commit is contained in:
parent
76b98eb2e3
commit
85a6807984
4 changed files with 49 additions and 6 deletions
18
.php-cs-fixer.dist.php
Normal file
18
.php-cs-fixer.dist.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
// define which files should be analyzed
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->exclude(__DIR__ . '/site/plugins')
|
||||
->in(__DIR__ . '/site')
|
||||
;
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
return $config
|
||||
->setRules(array(
|
||||
'@PSR12' => true,
|
||||
'array_syntax' => array('syntax' => 'long'),
|
||||
'method_chaining_indentation' => true,
|
||||
))
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder($finder)
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue