Repository navigation
Commit 1c8f0b7
committed
[CodeQuality] Move 4 early-return rules to code quality set
RemoveAlwaysElseRector, ChangeIfElseValueAssignToEarlyReturnRector,
PreparedValueToEarlyReturnRector and ReturnEarlyIfVariableRector improve
local code quality rather than enforce the early-return style. Move their
set registration from early-return to CodeQualityLevel. The rule classes
stay in their current namespace.1 parent 63c657c commit 1c8f0b7
3 files changed
Lines changed: 9 additions & 9 deletions
File tree
- config/set
- rules/CodeQuality/Rector/Class_
- src/Config/Level
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
17 | | - | |
18 | 13 | | |
19 | | - | |
20 | | - | |
21 | 14 | | |
22 | | - | |
23 | 15 | | |
24 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
| |||
0 commit comments