Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 1 addition & 29 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- [Arguments](#arguments) (6)

- [CodeQuality](#codequality) (74)
- [CodeQuality](#codequality) (73)

- [CodingStyle](#codingstyle) (34)

Expand Down Expand Up @@ -1075,34 +1075,6 @@ Move required parameters after optional ones

<br>

### RemoveAlwaysTrueConditionSetInConstructorRector

If conditions is always true, perform the content right away

- class: [`Rector\CodeQuality\Rector\FunctionLike\RemoveAlwaysTrueConditionSetInConstructorRector`](../rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php)

```diff
final class SomeClass
{
private $value;

public function __construct(stdClass $value)
{
$this->value = $value;
}

public function go()
{
- if ($this->value) {
- return 'yes';
- }
+ return 'yes';
}
}
```

<br>

### RemoveSoleValueSprintfRector

Remove `sprintf()` wrapper if not needed
Expand Down
2 changes: 0 additions & 2 deletions config/set/code-quality.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector;
use Rector\CodeQuality\Rector\FunctionLike\RemoveAlwaysTrueConditionSetInConstructorRector;
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
use Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
Expand Down Expand Up @@ -149,7 +148,6 @@
CompleteDynamicPropertiesRector::class,
IsAWithStringWithThirdArgumentRector::class,
StrlenZeroToIdenticalEmptyStringRector::class,
RemoveAlwaysTrueConditionSetInConstructorRector::class,
ThrowWithPreviousExceptionRector::class,
RemoveSoleValueSprintfRector::class,
ShortenElseIfRector::class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading