@@ -22,6 +22,8 @@ filter:
2222
2323checks :
2424 php :
25+ code_rating : true
26+ duplication : true
2527 remove_extra_empty_lines : true
2628 remove_php_closing_tag : true
2729 remove_trailing_whitespace : true
@@ -35,8 +37,6 @@ checks:
3537 fix_line_ending : true
3638 fix_identation_4spaces : true
3739 fix_doc_comments : true
38- code_rating : true
39- duplication : true
4040 variable_existence : true
4141 useless_calls : true
4242 use_statement_alias_conflict : true
@@ -68,11 +68,7 @@ checks:
6868 non_commented_empty_catch_block : true
6969 no_trait_type_hints : true
7070 no_trailing_whitespace : true
71- no_short_variable_names :
72- minimum : ' 3'
7371 no_short_open_tag : true
74- no_short_method_names :
75- minimum : ' 3'
7672 no_property_on_interface : true
7773 no_non_implemented_abstract_methods : true
7874 no_goto : true
@@ -84,18 +80,6 @@ checks:
8480 no_debug_code : true
8581 no_commented_out_code : true
8682 newline_at_end_of_file : true
87- naming_conventions :
88- local_variable : ' ^[a-z][a-zA-Z0-9]*$'
89- abstract_class_name : ' ^Abstract[A-Z][a-zA-Z0-9]*$'
90- utility_class_name : ' ^[A-Z][a-zA-Z0-9]*$'
91- constant_name : ' ^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
92- property_name : ' ^[a-z][a-zA-Z0-9]*$'
93- method_name : ' ^[a-z][a-zA-Z0-9]*$'
94- parameter_name : ' ^[a-z][a-zA-Z0-9]*$'
95- interface_name : ' ^[A-Z][a-zA-Z0-9]*Interface$'
96- type_name : ' ^[A-Z][a-zA-Z0-9]*$'
97- exception_name : ' ^[A-Z][a-zA-Z0-9]*Exception$'
98- isser_method_name : ' ^is[A-Z][a-zA-Z0-9]*$'
9983 more_specific_types_in_doc_comments : true
10084 missing_arguments : true
10185 method_calls_on_non_object : true
@@ -106,7 +90,6 @@ checks:
10690 deprecated_code_usage : true
10791 deadlock_detection_in_loops : true
10892 comparison_always_same_result : true
109- code_rating : true
11093 closure_use_modifiable : true
11194 catch_class_exists : true
11295 call_to_parent_method : true
@@ -123,6 +106,26 @@ checks:
123106 verify_access_scope_valid : true
124107 uppercase_constants : true
125108 use_self_instead_of_fqcn : true
109+
110+ # Naming conventions
111+ naming_conventions :
112+ local_variable : ' ^[a-z][a-zA-Z0-9]*$'
113+ abstract_class_name : ' ^Abstract[A-Z][a-zA-Z0-9]*$'
114+ utility_class_name : ' ^[A-Z][a-zA-Z0-9]*$'
115+ constant_name : ' ^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
116+ property_name : ' ^[a-z][a-zA-Z0-9]*$'
117+ method_name : ' ^[a-z][a-zA-Z0-9]*$'
118+ parameter_name : ' ^[a-z][a-zA-Z0-9]*$'
119+ interface_name : ' ^[A-Z][a-zA-Z0-9]*Interface$'
120+ type_name : ' ^[A-Z][a-zA-Z0-9]*$'
121+ exception_name : ' ^[A-Z][a-zA-Z0-9]*Exception$'
122+ isser_method_name : ' ^is[A-Z][a-zA-Z0-9]*$'
123+
124+ # Variable length constraints
125+ no_short_method_names :
126+ minimum : ' 3'
127+ no_short_variable_names :
128+ minimum : ' 3'
126129
127130tools :
128131 external_code_coverage :
0 commit comments