mirror of https://github.com/rectorphp/rector.git
[automated] Re-Generate Nodes/Rectors Documentation (#2438)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
parent
63cd74893d
commit
dbb54b83cc
|
@ -1,4 +1,4 @@
|
|||
# 517 Rules Overview
|
||||
# 518 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
- [Composer](#composer) (6)
|
||||
|
||||
- [DeadCode](#deadcode) (49)
|
||||
- [DeadCode](#deadcode) (50)
|
||||
|
||||
- [DependencyInjection](#dependencyinjection) (2)
|
||||
|
||||
|
@ -3253,6 +3253,29 @@ Remove assign of property, just for value assign
|
|||
|
||||
<br>
|
||||
|
||||
### RemoveJustPropertyFetchRector
|
||||
|
||||
Inline property fetch assign to a variable, that has no added value
|
||||
|
||||
- class: [`Rector\DeadCode\Rector\StmtsAwareInterface\RemoveJustPropertyFetchRector`](../rules/DeadCode/Rector/StmtsAwareInterface/RemoveJustPropertyFetchRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
private $name;
|
||||
|
||||
public function run()
|
||||
{
|
||||
- $name = $this->name;
|
||||
-
|
||||
- return $name;
|
||||
+ return $this->name;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### RemoveLastReturnRector
|
||||
|
||||
Remove very last `return` that has no meaning
|
||||
|
|
Loading…
Reference in New Issue