mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 20:23:49 +01:00
Ran fix-cs
This commit is contained in:
parent
4b38e85de3
commit
ea5fac3b87
@ -158,10 +158,10 @@ PHP
|
||||
return $this->betterNodeFinder->findFirstParentInstanceOf($node, self::CONTROL_STRUCTURE_NODES);
|
||||
}
|
||||
|
||||
private function isSelfReferencing(Assign $node) : bool
|
||||
private function isSelfReferencing(Assign $assign): bool
|
||||
{
|
||||
return (bool)$this->betterNodeFinder->findFirst($node->expr, function ($subNode) use ($node){
|
||||
return $this->areNodesEqual($node->var, $subNode);
|
||||
return (bool) $this->betterNodeFinder->findFirst($assign->expr, function ($subNode) use ($assign) {
|
||||
return $this->areNodesEqual($assign->var, $subNode);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -4,13 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace Rector\NodeTypeResolver\NodeVisitor;
|
||||
|
||||
use PhpParser\Node\Stmt\Function_;
|
||||
use Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassLike;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Function_;
|
||||
use PhpParser\NodeVisitorAbstract;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
|
||||
|
0
packages/Sensio/src/Rector/FrameworkExtraBundle/TemplateAnnotationRector.php
Executable file → Normal file
0
packages/Sensio/src/Rector/FrameworkExtraBundle/TemplateAnnotationRector.php
Executable file → Normal file
0
packages/Sensio/tests/Rector/FrameworkExtraBundle/TemplateAnnotationRector/TemplateAnnotationVersion5RectorTest.php
Executable file → Normal file
0
packages/Sensio/tests/Rector/FrameworkExtraBundle/TemplateAnnotationRector/TemplateAnnotationVersion5RectorTest.php
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user