Skip to content

Instantly share code, notes, and snippets.

@rleger
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rleger/ef880c39b8c71074287d to your computer and use it in GitHub Desktop.
Save rleger/ef880c39b8c71074287d to your computer and use it in GitHub Desktop.
PHP CS fixer config file
<?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