exclude(__DIR__ . '/site/plugins') ->in(__DIR__ . '/site') ; $config = new PhpCsFixer\Config(); return $config ->setRules(array( '@PSR12' => true, 'array_syntax' => array('syntax' => 'long'), 'method_chaining_indentation' => true, )) ->setRiskyAllowed(true) ->setFinder($finder) ;