diff --git a/.gitignore b/.gitignore index 3a9875b46..34526486e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ composer.lock +.php_cs.cache diff --git a/.php_cs b/.php_cs new file mode 100644 index 000000000..c5e65200c --- /dev/null +++ b/.php_cs @@ -0,0 +1,21 @@ +setUsingLinter(false) + ->setUsingCache(true) + ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) + ->fixers([ + 'concat_with_spaces', + '-concat_without_spaces', + '-empty_return', + '-phpdoc_params', + '-spaces_cast', + ]) + ->finder( + Symfony\CS\Finder\DefaultFinder::create() + ->in(__DIR__) + ->exclude([ + 'vendor', + ]) + ) +;