Code Duplication    Length = 6-6 lines in 2 locations

src/NodeVisitor/FunctionStmt/ScopeFunctionCallStmtNodeVisitor.php 1 location

@@ 49-54 (lines=6) @@
46
     */
47
    public function enterNode(Node $node): Node
48
    {
49
        if (false === ($node instanceof Name)
50
            || false === $node->hasAttribute('parent')
51
            || ($node->hasAttribute('phpscoper_ignore') && $node->getAttribute('phpscoper_ignore'))
52
        ) {
53
            return $node;
54
        }
55
        /** @var Name $node */
56
        $parentNode = $node->getAttribute('parent');
57

src/NodeVisitor/FunctionStmt/ScopeStaticCallStmtNodeVisitor.php 1 location

@@ 49-54 (lines=6) @@
46
     */
47
    public function enterNode(Node $node): Node
48
    {
49
        if (false === ($node instanceof Name)
50
            || false === $node->hasAttribute('parent')
51
            || ($node->hasAttribute('phpscoper_ignore') && $node->getAttribute('phpscoper_ignore'))
52
        ) {
53
            return $node;
54
        }
55
56
        $parentNode = $node->getAttribute('parent');
57