Sylius/.php_cs
2015-11-09 14:56:07 +00:00

35 lines
814 B
PHP

<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Symfony\CS\FixerInterface;
use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
$header = <<<EOF
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('*.yml')
->notName('*.xml')
->notName('*Spec.php')
->exclude('app')
;
return Symfony\CS\Config\Config::create()
->fixers(array('header_comment'))
->finder($finder);