in(__DIR__); $header = << true, '@Symfony' => true, 'cast_spaces' => [ 'space' => 'none', ], 'concat_space' => [ 'spacing' => 'none', ], 'native_function_invocation' => [ 'scope' => 'namespaced', ], 'psr4' => true, 'phpdoc_align' => [ 'align' => 'left', ], 'array_syntax' => [ 'syntax' => 'short', ], 'header_comment' => [ 'header' => $header, 'commentType' => PhpCsFixer\Fixer\Comment\HeaderCommentFixer::HEADER_PHPDOC, ], 'yoda_style' => false, ]; $cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; return PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setRules($rules) ->setFinder($finder) ->setCacheFile($cacheDir . '/.php_cs.cache');