files() ->in(__DIR__ . '/bin') ->in(__DIR__ . '/src') ->in(__DIR__ . '/tests') ->append([__FILE__]) ->notName('DefaultRuleProvider.php') ; $config = new PhpCsFixer\Config(); $config ->setFinder($finder) ->setRiskyAllowed(true) ->setRules([ '@PSR2' => true, 'no_empty_phpdoc' => true, 'php_unit_fqcn_annotation' => true, 'php_unit_test_annotation' => true, 'phpdoc_trim' => true, ]); return $config;