mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 12:52:36 +00:00
fix cs
This commit is contained in:
parent
8d22139ec6
commit
a74b6617bc
|
@ -270,9 +270,7 @@ PHP
|
|||
// this node was just used, skip to next one
|
||||
return $previousNode !== null && ($previousNode->isType(
|
||||
VariableNodeUseInfo::TYPE_ASSIGN
|
||||
) && $nodeByTypeAndPosition->isType(
|
||||
VariableNodeUseInfo::TYPE_USE
|
||||
));
|
||||
) && $nodeByTypeAndPosition->isType(VariableNodeUseInfo::TYPE_USE));
|
||||
}
|
||||
|
||||
private function shouldRemoveAssignNode(
|
||||
|
|
|
@ -221,9 +221,7 @@ final class IfManipulator
|
|||
if ($this->betterStandardPrinter->areNodesEqual(
|
||||
$notIdentical->left,
|
||||
$returnNode->expr
|
||||
) && $this->constFetchManipulator->isNull(
|
||||
$notIdentical->right
|
||||
)) {
|
||||
) && $this->constFetchManipulator->isNull($notIdentical->right)) {
|
||||
return $notIdentical->left;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user