|
42 | 42 | // Comments with annotation should be docblock when used on structural elements.
|
43 | 43 | 'comment_to_phpdoc' => false,
|
44 | 44 | // Remove extra spaces in a nullable typehint.
|
45 |
| - 'compact_nullable_typehint' => true, |
| 45 | + 'compact_nullable_type_declaration' => true, |
46 | 46 | // Concatenation should be spaced according configuration.
|
47 | 47 | 'concat_space' => ['spacing'=>'one'],
|
48 | 48 | // The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.
|
|
70 | 70 | // Replace core functions calls returning constants with the constants.
|
71 | 71 | 'function_to_constant' => true,
|
72 | 72 | // Ensure single space between function's argument and its typehint.
|
73 |
| - 'function_typehint_space' => true, |
| 73 | + 'type_declaration_spaces' => true, |
74 | 74 | // Renames PHPDoc tags.
|
75 | 75 | 'general_phpdoc_tag_rename' => true,
|
76 | 76 | // Function `implode` must be called with 2 arguments in the documented order.
|
|
112 | 112 | // Add leading `\` before function invocation to speed up resolving.
|
113 | 113 | 'native_function_invocation' => ['include'=>['@all','trans']],
|
114 | 114 | // Native type hints for functions should use the correct case.
|
115 |
| - 'native_function_type_declaration_casing' => true, |
| 115 | + 'native_type_declaration_casing' => true, |
116 | 116 | // All instances created with new keyword must be followed by braces.
|
117 |
| - 'new_with_braces' => true, |
| 117 | + 'new_with_parentheses' => true, |
118 | 118 | // Master functions shall be used instead of aliases.
|
119 | 119 | 'no_alias_functions' => true,
|
120 | 120 | // Master language constructs shall be used instead of aliases.
|
|
149 | 149 | 'no_short_bool_cast' => true,
|
150 | 150 | // When making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis.
|
151 | 151 | 'no_spaces_after_function_name' => true,
|
152 |
| - // There MUST NOT be a space after the opening parenthesis. There MUST NOT be a space before the closing parenthesis. |
153 |
| - 'no_spaces_inside_parenthesis' => true, |
154 | 152 | // Removes `@param`, `@return` and `@var` tags that don't provide any useful information.
|
155 | 153 | 'no_superfluous_phpdoc_tags' => true,
|
156 | 154 | // Remove trailing whitespace at the end of non-blank lines.
|
|
160 | 158 | // Removes unneeded parentheses around control statements.
|
161 | 159 | 'no_unneeded_control_parentheses' => false,
|
162 | 160 | // Removes unneeded curly braces that are superfluous and aren't part of a control structure's body.
|
163 |
| - 'no_unneeded_curly_braces' => true, |
| 161 | + 'no_unneeded_braces' => true, |
164 | 162 | // A `final` class must not have `final` methods and `private` methods must not be `final`.
|
165 | 163 | 'no_unneeded_final_method' => true,
|
166 | 164 | // In function arguments there must not be arguments with default values before non-default ones.
|
167 | 165 | 'no_unreachable_default_argument_value' => true,
|
168 | 166 | // Variables must be set `null` instead of using `(unset)` casting.
|
169 | 167 | 'no_unset_cast' => true,
|
170 | 168 | // Properties should be set to `null` instead of using `unset`.
|
171 |
| - 'no_unset_on_property' => true, |
| 169 | + 'no_unset_on_property' => false, |
172 | 170 | // Unused `use` statements must be removed.
|
173 | 171 | 'no_unused_imports' => true,
|
174 | 172 | // There should not be useless `else` cases.
|
|
230 | 228 | // A PHP file without end tag must always end with a single empty line feed.
|
231 | 229 | 'single_blank_line_at_eof' => true,
|
232 | 230 | // There should be exactly one blank line before a namespace declaration.
|
233 |
| - 'single_blank_line_before_namespace' => true, |
| 231 | + 'blank_lines_before_namespace' => ['max_line_breaks' => 2, 'min_line_breaks' => 2], |
234 | 232 | // There MUST NOT be more than one property or constant declared per statement.
|
235 | 233 | 'single_class_element_per_statement' => true,
|
236 | 234 | // There MUST be one use keyword per declaration.
|
|
243 | 241 | 'single_quote' => true,
|
244 | 242 | // Each trait `use` must be done as single statement.
|
245 | 243 | 'single_trait_insert_per_statement' => true,
|
| 244 | + // There MUST NOT be a space after the opening parenthesis. There MUST NOT be a space before the closing parenthesis. |
| 245 | + 'spaces_inside_parentheses' => true, |
246 | 246 | // Replace all `<>` with `!=`.
|
247 | 247 | 'standardize_not_equals' => true,
|
248 | 248 | // Lambdas not (indirect) referencing `$this` must be declared `static`.
|
|
0 commit comments