add php cs fixer

This commit is contained in:
isUnknown 2024-04-09 07:24:22 +02:00
parent 76b98eb2e3
commit 85a6807984
4 changed files with 49 additions and 6 deletions

18
.php-cs-fixer.dist.php Normal file
View 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)
;