19 lines
418 B
PHP
19 lines
418 B
PHP
|
|
<?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)
|
||
|
|
;
|