Last active
August 29, 2015 14:20
-
-
Save rleger/ef880c39b8c71074287d to your computer and use it in GitHub Desktop.
PHP CS fixer config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$header = <<<EOF | |
This file is part of the PHP CS utility. | |
(c) Fabien Potencier <fabien@symfony.com> | |
This source file is subject to the MIT license that is bundled | |
with this source code in the file LICENSE. | |
EOF; | |
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); | |
$finder = Symfony\CS\Finder\DefaultFinder::create() | |
->exclude('vendor') | |
->exclude('Symfony/CS/Tests/Fixtures') | |
->in(__DIR__); | |
return Symfony\CS\Config\Config::create() | |
// use default SYMFONY_LEVEL and extra fixers: | |
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
->fixers([ | |
'-blankline_after_open_tag', | |
'align_double_arrow', | |
'short_array_syntax', | |
'ordered_use', | |
]) | |
->finder($finder) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment