1+ <?php
2+
3+ $ config = new PhpCsFixer \Config ();
4+
5+ $ config
6+ ->setUsingCache (true )
7+ ->setRiskyAllowed (true )
8+ ->setRules ([
9+ '@Symfony ' => true ,
10+ 'array_indentation ' => true ,
11+ 'cast_spaces ' => [
12+ 'space ' => 'single ' ,
13+ ],
14+ 'combine_consecutive_issets ' => true ,
15+ 'concat_space ' => [
16+ 'spacing ' => 'one ' ,
17+ ],
18+ 'error_suppression ' => [
19+ 'mute_deprecation_error ' => false ,
20+ 'noise_remaining_usages ' => false ,
21+ 'noise_remaining_usages_exclude ' => [],
22+ ],
23+ 'function_to_constant ' => false ,
24+ 'global_namespace_import ' => true ,
25+ 'method_chaining_indentation ' => true ,
26+ 'no_alias_functions ' => false ,
27+ 'no_superfluous_phpdoc_tags ' => false ,
28+ 'non_printable_character ' => [
29+ 'use_escape_sequences_in_strings ' => true ,
30+ ],
31+ 'phpdoc_align ' => [
32+ 'align ' => 'left ' ,
33+ ],
34+ 'phpdoc_summary ' => false ,
35+ 'protected_to_private ' => false ,
36+ 'self_accessor ' => false ,
37+ 'yoda_style ' => false ,
38+ 'single_line_throw ' => false ,
39+ 'no_alias_language_construct_call ' => false ,
40+ ])
41+ ->getFinder ()
42+ ->in (__DIR__ )
43+ ->exclude ('vendor ' );
44+
45+ return $ config ;
0 commit comments