setRiskyAllowed(false) ->setRules([ '@PSR12' => true, '@PHP80Migration' => true, 'array_syntax' => ['syntax' => 'short'], 'no_unused_imports' => true, 'ordered_imports' => ['sort_algorithm' => 'alpha'], 'single_quote' => true, 'trailing_comma_in_multiline' => true, ]) ->setFinder( (new Finder()) ->in(__DIR__ . '/app/src') ->in(__DIR__ . '/app/tests') ->name('*.php') ) ;