Skip to content

Commit 6392d6d

Browse files
committed
[ci-review] Rector Rectify
1 parent 85d6543 commit 6392d6d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rules/CodeQuality/Rector/FuncCall/SortNamedParamRector.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,8 @@ public function refactor(Node $node): ?Node
7575
if ($node instanceof CallLike && $node->isFirstClassCallable()) {
7676
return null;
7777
}
78+
$args = $node instanceof Attribute ? $node->args : $node->getArgs();
7879

79-
if ($node instanceof Attribute) {
80-
$args = $node->args;
81-
} else {
82-
$args = $node->getArgs();
83-
}
8480
if (count($args) <= 1) {
8581
return null;
8682
}

0 commit comments

Comments
 (0)