Skip to content

Commit 6e3122c

Browse files
authored
[automated] Apply Coding Standard (#7094)
Co-authored-by: TomasVotruba <[email protected]>
1 parent 127d298 commit 6e3122c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rules/DeadCode/Rector/Property/RemoveUnusedPrivatePropertyRector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ private function shouldSkipClass(Class_ $class): bool
156156

157157
private function removePropertyAssigns(Class_ $class, string $propertyName): void
158158
{
159-
$this->traverseNodesWithCallable($class, function (Node $node) use ($class, $propertyName): null|int|Return_|Arg {
159+
$this->traverseNodesWithCallable($class, function (Node $node) use (
160+
$class,
161+
$propertyName
162+
): null|int|Return_|Arg {
160163
if (! $node instanceof Expression && ! $node instanceof Return_) {
161164
if ($node instanceof Arg && $node->value instanceof Assign) {
162165
$assign = $node->value;

tests/Issues/TemplatedTypeOnParamAndReturn/config/configured_rule.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@
77
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
88

99
return RectorConfig::configure()
10-
->withRules([
11-
RemoveUselessParamTagRector::class,
12-
RemoveUselessReturnTagRector::class
13-
]);
10+
->withRules([RemoveUselessParamTagRector::class, RemoveUselessReturnTagRector::class]);

0 commit comments

Comments
 (0)