in('examples/') ->in('tests/') ->in('src/'); $config = new PhpCsFixer\Config(); return $config->setRules([ 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => ['space' => 'none'], 'is_null' => true, 'modernize_types_casting' => true, 'ordered_imports' => true, 'php_unit_construct' => true, 'php_unit_method_casing' => ['case' => 'snake_case'], 'single_line_comment_style' => true, 'yoda_style' => false, '@PSR2' => true, 'array_syntax' => ['syntax' => 'short'], 'blank_line_after_opening_tag' => true, 'blank_line_before_statement' => true, 'cast_spaces' => true, 'declare_strict_types' => true, 'type_declaration_spaces' => true, 'include' => true, 'lowercase_cast' => true, 'new_with_parentheses' => true, 'no_extra_blank_lines' => true, 'no_leading_import_slash' => true, 'no_trailing_whitespace' => true, 'no_whitespace_in_blank_line' => true, 'echo_tag_syntax' => true, 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, 'phpdoc_order' => true, 'phpdoc_scalar' => true, 'phpdoc_types' => true, 'short_scalar_cast' => true, 'blank_lines_before_namespace' => true, 'single_quote' => true, 'trailing_comma_in_multiline' => ['elements' => ['arrays', 'parameters', 'match']], ]) ->setRiskyAllowed(true) ->setFinder($finder);