From 222e6a4e95f8ee55a913eefe0ef6e17a776f4b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vieilledent?= Date: Tue, 21 Jul 2015 17:01:31 +0200 Subject: [PATCH] EZP-24612: Added config for php-cs-fixer --- .gitignore | 1 + .php_cs | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .php_cs 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', + ]) + ) +;