1<?php 2 3return PhpCsFixer\Config::create() 4 ->setRiskyAllowed(true) 5 ->setRules([ 6 '@Symfony' => true, 7 '@Symfony:risky' => true, 8 'array_syntax' => ['syntax' => 'short'], 9 'combine_consecutive_unsets' => true, 10 'concat_space' => [ 'spacing' => 'one'], 11 'heredoc_to_nowdoc' => true, 12 'increment_style' => false, 13 'list_syntax' => ['syntax' => 'long'], 14 'no_extra_consecutive_blank_lines' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'], 15 'no_short_echo_tag' => true, 16 'no_unreachable_default_argument_value' => true, 17 'no_useless_else' => true, 18 'no_useless_return' => true, 19 'ordered_imports' => true, 20 'pre_increment' => false, 21 'php_unit_strict' => true, 22 'php_unit_test_class_requires_covers' => true, 23 'phpdoc_add_missing_param_annotation' => true, 24 'phpdoc_no_alias_tag' => false, 25 'phpdoc_order' => true, 26 'semicolon_after_instruction' => true, 27 'strict_comparison' => true, 28 'strict_param' => true, 29 'yoda_style' => false, 30 ]) 31 ->setFinder( 32 PhpCsFixer\Finder::create() 33 ->in(__DIR__) 34 ) 35; 36