diff --git a/.gitignore b/.gitignore index e7302190e..8c25889e0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ nbproject /tests/E2E/ /vendor/ + +.php_cs.cache \ No newline at end of file diff --git a/.php_cs.dist b/.php_cs.dist new file mode 100644 index 000000000..c618b640c --- /dev/null +++ b/.php_cs.dist @@ -0,0 +1,36 @@ +in(__DIR__) + ->exclude('translations') + ->notPath('classes/Tools14.php'); + +return PhpCsFixer\Config::create() + ->setRiskyAllowed(true) + ->setRules([ + '@Symfony' => true, + 'concat_space' => [ + 'spacing' => 'one', + ], + 'cast_spaces' => [ + 'space' => 'single', + ], + 'error_suppression' => [ + 'mute_deprecation_error' => false, + 'noise_remaining_usages' => false, + 'noise_remaining_usages_exclude' => [], + ], + 'function_to_constant' => false, + 'no_alias_functions' => false, + 'non_printable_character' => false, + 'phpdoc_summary' => false, + 'phpdoc_align' => [ + 'align' => 'left', + ], + 'protected_to_private' => false, + 'psr4' => false, + 'self_accessor' => false, + 'yoda_style' => null, + 'non_printable_character' => true, + ]) + ->setFinder($finder);