2015-06-17 19:30:25 +02:00
|
|
|
<?php
|
|
|
|
|
2016-04-13 08:33:25 +07:00
|
|
|
$header = <<<EOF
|
|
|
|
(c) Anton Medvedev <anton@medv.io>
|
|
|
|
|
|
|
|
For the full copyright and license information, please view the LICENSE
|
|
|
|
file that was distributed with this source code.
|
|
|
|
EOF;
|
|
|
|
|
|
|
|
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
|
|
|
|
|
2015-06-17 19:30:25 +02:00
|
|
|
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
2016-04-13 08:33:25 +07:00
|
|
|
->exclude('vendor')
|
2015-06-17 19:30:25 +02:00
|
|
|
->in(__DIR__);
|
|
|
|
|
|
|
|
$fixers = [
|
2016-04-13 08:33:25 +07:00
|
|
|
'header_comment',
|
2015-06-17 19:30:25 +02:00
|
|
|
'short_array_syntax',
|
|
|
|
];
|
|
|
|
|
|
|
|
return Symfony\CS\Config\Config::create()
|
|
|
|
->setUsingCache(true)
|
|
|
|
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
|
|
|
|
->fixers($fixers)
|
|
|
|
->finder($finder);
|