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 = 16-16 lines in 4 locations

src/TwigJs/Compiler/Test/EmptyCompiler.php 1 location

@@ 8-23 (lines=16) @@
5
use TwigJs\JsCompiler;
6
use TwigJs\TestCompilerInterface;
7
8
class EmptyCompiler implements TestCompilerInterface
9
{
10
    public function getName()
11
    {
12
        return 'empty';
13
    }
14
15
    public function compile(JsCompiler $compiler, \Twig_Node_Expression_Test $node)
16
    {
17
        $compiler
18
            ->raw('twig.empty(')
19
            ->subcompile($node->getNode('node'))
20
            ->raw(')')
21
        ;
22
    }
23
}
24

src/TwigJs/Compiler/Test/EvenCompiler.php 1 location

@@ 8-23 (lines=16) @@
5
use TwigJs\JsCompiler;
6
use TwigJs\TestCompilerInterface;
7
8
class EvenCompiler implements TestCompilerInterface
9
{
10
    public function getName()
11
    {
12
        return 'even';
13
    }
14
15
    public function compile(JsCompiler $compiler, \Twig_Node_Expression_Test $node)
16
    {
17
        $compiler
18
            ->raw('(0 === ')
19
            ->subcompile($node->getNode('node'))
20
            ->raw(' % 2)')
21
        ;
22
    }
23
}
24

src/TwigJs/Compiler/Test/NoneCompiler.php 1 location

@@ 8-23 (lines=16) @@
5
use TwigJs\JsCompiler;
6
use TwigJs\TestCompilerInterface;
7
8
class NoneCompiler implements TestCompilerInterface
9
{
10
    public function getName()
11
    {
12
        return 'none';
13
    }
14
15
    public function compile(JsCompiler $compiler, \Twig_Node_Expression_Test $node)
16
    {
17
        $compiler
18
            ->raw('(null === ')
19
            ->subcompile($node->getNode('node'))
20
            ->raw(')')
21
        ;
22
    }
23
}
24

src/TwigJs/Compiler/Test/OddCompiler.php 1 location

@@ 8-23 (lines=16) @@
5
use TwigJs\JsCompiler;
6
use TwigJs\TestCompilerInterface;
7
8
class OddCompiler implements TestCompilerInterface
9
{
10
    public function getName()
11
    {
12
        return 'odd';
13
    }
14
15
    public function compile(JsCompiler $compiler, \Twig_Node_Expression_Test $node)
16
    {
17
        $compiler
18
            ->raw('1 === ')
19
            ->subcompile($node->getNode('node'))
20
            ->raw(' % 2')
21
        ;
22
    }
23
}
24