Update php-cs-fixer config.
This commit is contained in:
@@ -4,14 +4,15 @@ use Symfony\CS\Config\Config;
|
|||||||
use Symfony\CS\FixerInterface;
|
use Symfony\CS\FixerInterface;
|
||||||
|
|
||||||
$config = Config::create()
|
$config = Config::create()
|
||||||
// use default level and extra fixers:
|
// use symfony level and extra fixers:
|
||||||
->fixers(array('-concat_without_spaces', 'concat_with_spaces', 'strict', 'strict_param'))
|
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
|
||||||
->setUsingCache(true)
|
->fixers(array('-concat_without_spaces', 'concat_with_spaces', 'strict'))
|
||||||
->setUsingLinter(false);
|
->setUsingLinter(false);
|
||||||
|
|
||||||
$finder = $config->getFinder()
|
$finder = $config->getFinder()
|
||||||
->in(__DIR__)
|
->in('bin')
|
||||||
->exclude('bin');
|
->in('src')
|
||||||
|
->in('test');
|
||||||
|
|
||||||
// exclude file due to error on PHP 5.3 that ignore content after __halt_compiler when using token_get_all
|
// exclude file due to error on PHP 5.3 that ignore content after __halt_compiler when using token_get_all
|
||||||
if (version_compare(PHP_VERSION, '5.4', '<')) {
|
if (version_compare(PHP_VERSION, '5.4', '<')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user