2016-01-22 00:38:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
|
|
|
->in(__DIR__ . '/lib')
|
|
|
|
;
|
|
|
|
|
|
|
|
return Symfony\CS\Config\Config::create()
|
2016-10-16 16:46:43 +03:00
|
|
|
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
|
2016-01-22 00:56:05 +02:00
|
|
|
->setUsingCache(true)
|
2016-01-22 00:38:40 +02:00
|
|
|
->fixers(array(
|
|
|
|
'linefeed',
|
|
|
|
'trailing_spaces',
|
|
|
|
'unused_use',
|
|
|
|
'short_tag',
|
|
|
|
'return',
|
|
|
|
'visibility',
|
|
|
|
'php_closing_tag',
|
|
|
|
'extra_empty_lines',
|
|
|
|
'function_declaration',
|
|
|
|
'include',
|
|
|
|
'controls_spaces',
|
|
|
|
'elseif',
|
|
|
|
'-eof_ending',
|
2016-10-16 16:46:43 +03:00
|
|
|
'-method_argument_space',
|
2016-01-22 00:38:40 +02:00
|
|
|
))
|
|
|
|
->finder($finder)
|
|
|
|
;
|