mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-30 16:00:52 +00:00
updated docs
This commit is contained in:
parent
e856fb8ddb
commit
f0e3575846
|
@ -1,4 +1,4 @@
|
|||
# All 429 Rectors Overview
|
||||
# All 430 Rectors Overview
|
||||
|
||||
- [Projects](#projects)
|
||||
- [General](#general)
|
||||
|
@ -514,6 +514,29 @@ Change array_push() to direct variable assign
|
|||
|
||||
<br>
|
||||
|
||||
### `CombineIfRector`
|
||||
|
||||
- class: `Rector\CodeQuality\Rector\If_\CombineIfRector`
|
||||
|
||||
Merges nested if statements
|
||||
|
||||
```diff
|
||||
class SomeClass {
|
||||
public function run()
|
||||
{
|
||||
- if ($cond1) {
|
||||
- if ($cond2) {
|
||||
- return 'foo';
|
||||
- }
|
||||
+ if ($cond1 && $cond2) {
|
||||
+ return 'foo';
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### `CombinedAssignRector`
|
||||
|
||||
- class: `Rector\CodeQuality\Rector\Assign\CombinedAssignRector`
|
||||
|
|
Loading…
Reference in New Issue
Block a user