|
5 | 5 | return [ |
6 | 6 | '@PSR12' => true, |
7 | 7 | '@PSR12:risky' => true, |
8 | | - 'new_with_braces' => false, // new stdClass |
| 8 | + 'new_with_parentheses' => false, // new stdClass |
9 | 9 | 'single_line_after_imports' => false, // Nette uses two empty lines |
10 | 10 | 'blank_line_after_namespace' => false, |
11 | 11 | 'ordered_imports' => true, // Use statements are alphabetically ordered |
12 | 12 | 'blank_line_between_import_groups' => false, |
13 | 13 |
|
14 | | - // braces split |
15 | | - 'braces' => false, |
16 | 14 | // Ensures a single space after language constructs |
17 | | - 'single_space_after_construct' => true, |
| 15 | + 'single_space_around_construct' => true, |
18 | 16 | // The body of each control structure MUST be enclosed within braces |
19 | 17 | 'control_structure_braces' => true, |
20 | 18 | // Control structure continuation keyword must be on the configured line |
|
108 | 106 | // Remove useless semicolon statements |
109 | 107 | 'no_empty_statement' => true, |
110 | 108 |
|
111 | | - 'no_unneeded_curly_braces' => true, |
| 109 | + // Removes unneeded braces that are superfluous and aren’t part of a control structure’s body |
| 110 | + 'no_unneeded_braces' => true, |
112 | 111 |
|
113 | 112 | // Remove trailing commas in list() calls. |
114 | 113 | 'no_trailing_comma_in_singleline' => true, |
|
166 | 165 | // Convert double quotes to single quotes for simple strings. |
167 | 166 | 'single_quote' => true, |
168 | 167 |
|
169 | | - 'escape_implicit_backslashes' => true, |
| 168 | + // Handles implicit backslashes in strings and heredocs |
| 169 | + 'string_implicit_backslashes' => true, |
170 | 170 |
|
171 | 171 | // Convert ${..} to {$..} |
172 | 172 | 'simple_to_complex_string_variable' => true, |
|
0 commit comments