in(__DIR__ . DIRECTORY_SEPARATOR . 'tests') ->in(__DIR__ . DIRECTORY_SEPARATOR . 'bin') ->in(__DIR__ . DIRECTORY_SEPARATOR . 'stubs') ->in(__DIR__ . DIRECTORY_SEPARATOR . 'src') ->append(['.php-cs-fixer.dist.php']); $rules = [ '@Symfony' => true, 'phpdoc_no_empty_return' => false, 'array_syntax' => ['syntax' => 'short'], 'yoda_style' => false, 'binary_operator_spaces' => [ 'operators' => [ '=>' => 'align', '=' => 'align', ], ], 'concat_space' => ['spacing' => 'one'], 'not_operator_with_space' => false, 'global_namespace_import' => [ 'import_classes' => true, 'import_functions' => true, 'import_constants' => true, ], ]; $rules['increment_style'] = ['style' => 'post']; return (new PhpCsFixer\Config()) ->setUsingCache(true) ->setRules($rules) ->setFinder($finder);