Repository navigation
Commit 4acfa67
committed
[EarlyReturn] Deprecate ChangeOrIfContinueToMultiContinueRector
Splitting a single || condition into multiple continue ifs makes code
longer and harder to read in most cases. Removed from early-return set.1 parent 1949c3d commit 4acfa67
13 files changed
Lines changed: 9 additions & 442 deletions
File tree
- config/set
- rules-tests/EarlyReturn/Rector/If_/ChangeOrIfContinueToMultiContinueRector
- Fixture
- config
- rules/EarlyReturn/Rector/If_
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
0 commit comments