Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 22, 2022
1 parent b2123ce commit 988b750
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/NodeAnalyzer/ParamAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ public function isParamUsedInClassMethod(ClassMethod $classMethod, Param $param)
});
}

private function isVariableInClosureUses(Closure $closure, Variable $variable): bool
{
foreach ($closure->uses as $use) {
if ($this->nodeComparator->areNodesEqual($use->var, $variable)) {
return true;
}
}

return false;
}

/**
* @param Param[] $params
*/
Expand Down Expand Up @@ -97,4 +86,15 @@ public function hasDefaultNull(Param $param): bool
{
return $param->default instanceof ConstFetch && $this->valueResolver->isNull($param->default);
}

private function isVariableInClosureUses(Closure $closure, Variable $variable): bool
{
foreach ($closure->uses as $use) {
if ($this->nodeComparator->areNodesEqual($use->var, $variable)) {
return true;
}
}

return false;
}
}

0 comments on commit 988b750

Please sign in to comment.