updated docs

This commit is contained in:
Jeroen Smit 2020-01-15 21:40:44 +01:00
parent e856fb8ddb
commit f0e3575846

View File

@ -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`