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 = 13-13 lines in 2 locations

src/TwigJs/Compiler/IncludeCompiler.php 1 location

@@ 45-57 (lines=13) @@
42
        $compiler->addDebugInfo($node);
43
44
        $compiler->isTemplateName = true;
45
        if ($node->getNode('expr') instanceof Twig_Node_Expression_Constant) {
46
            $compiler
47
                ->write("(new ")
48
                ->subcompile($node->getNode('expr'))
49
                ->raw("(this.env_)).render_(sb, ")
50
            ;
51
        } else {
52
            $compiler
53
                ->write("(new ")
54
                ->subcompile($node->getNode('expr'))
55
                ->raw("(this.env_)).render_(sb, ")
56
            ;
57
        }
58
        $compiler->isTemplateName = false;
59
60
        if (false === $node->getAttribute('only')) {

src/TwigJs/Compiler/SetCompiler.php 1 location

@@ 78-90 (lines=13) @@
75
                ->raw(" = new twig.Markup(sb.toString());\n")
76
                ->write("sb = $captureStringBuffer")
77
            ;
78
        } else {
79
            $compiler->raw(' = ');
80
81
            if ($node->getAttribute('safe')) {
82
                $compiler
83
                    ->raw("new twig.Markup(")
84
                    ->subcompile($node->getNode('values'))
85
                    ->raw(")")
86
                ;
87
            } else {
88
                $compiler->subcompile($node->getNode('values'));
89
            }
90
        }
91
92
        $compiler->raw(";\n");
93
        $this->count = $count;