mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
25 lines
643 B
PHP
25 lines
643 B
PHP
<?php
|
|
|
|
$APPROOT = dirname(__DIR__, 2);
|
|
|
|
echo $APPROOT;
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in($APPROOT)
|
|
->exclude(['oql', 'data', 'extensions'])
|
|
->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules', 'config-itop', 'php-static-analysis', 'module.__MODULE__.php'])
|
|
;
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
return $config->setRiskyAllowed(true)
|
|
->setRules([
|
|
'@PSR12' => true,
|
|
'indentation_type' => true,
|
|
'no_extra_blank_lines' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'concat_space' => true,
|
|
'trailing_comma_in_multiline' => true,
|
|
])
|
|
->setIndent("\t")
|
|
->setLineEnding("\n")
|
|
->setFinder($finder)
|
|
; |