Skip to content

Instantly share code, notes, and snippets.

@rleger

rleger/.php_cs

Last active Aug 29, 2015
Embed
What would you like to do?
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