GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 12-12 lines in 3 locations

src/TwigJs/Compiler/ForCompiler.php 1 location

@@ 154-165 (lines=12) @@
151
        $this->count = $count;
152
    }
153
154
    private function hasElseNode(\Twig_NodeInterface $node)
155
    {
156
        if (!$node->hasNode('else')) {
157
            return false;
158
        }
159
160
        if (null === $node->getNode('else')) {
161
            return false;
162
        }
163
164
        return true;
165
    }
166
}
167

src/TwigJs/Compiler/IncludeCompiler.php 1 location

@@ 81-92 (lines=12) @@
78
        $compiler->raw(");\n");
79
    }
80
81
    private function hasVariablesNode(\Twig_NodeInterface $node)
82
    {
83
        if (!$node->hasNode('variables')) {
84
            return false;
85
        }
86
87
        if (null === $node->getNode('variables')) {
88
            return false;
89
        }
90
91
        return true;
92
    }
93
}
94

src/TwigJs/Compiler/ModuleCompiler.php 1 location

@@ 281-292 (lines=12) @@
278
        $compiler->isTemplateName = false;
279
    }
280
281
    private function hasParentNode(\Twig_NodeInterface $node)
282
    {
283
        if (!$node->hasNode('parent')) {
284
            return false;
285
        }
286
287
        if (null === $node->getNode('parent')) {
288
            return false;
289
        }
290
291
        return true;
292
    }
293
}
294