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

src/Twig/Node/DrawingNode.php 1 location

@@ 10-36 (lines=27) @@
7
/**
8
 * Class DrawingNode.
9
 */
10
class DrawingNode extends BaseNode
11
{
12
    /**
13
     * @param Twig_Compiler $compiler
14
     */
15
    public function compile(Twig_Compiler $compiler)
16
    {
17
        $compiler->addDebugInfo($this)
18
            ->write(self::CODE_FIX_CONTEXT)
19
            ->write(self::CODE_INSTANCE.'->startDrawing(')
20
                ->subcompile($this->getNode('path'))->raw(', ')
21
                ->subcompile($this->getNode('properties'))
22
            ->raw(');'.PHP_EOL)
23
            ->write(self::CODE_INSTANCE.'->endDrawing();'.PHP_EOL);
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getAllowedParents(): array
30
    {
31
        return [
32
            SheetNode::class,
33
            AlignmentNode::class,
34
        ];
35
    }
36
}
37

src/Twig/Node/RowNode.php 1 location

@@ 10-36 (lines=27) @@
7
/**
8
 * Class RowNode.
9
 */
10
class RowNode extends BaseNode
11
{
12
    /**
13
     * @param Twig_Compiler $compiler
14
     */
15
    public function compile(Twig_Compiler $compiler)
16
    {
17
        $compiler->addDebugInfo($this)
18
            ->write(self::CODE_FIX_CONTEXT)
19
            ->write(self::CODE_INSTANCE.'->startRow(')
20
                ->subcompile($this->getNode('index'))
21
            ->raw(');'.PHP_EOL)
22
            ->subcompile($this->getNode('body'))
23
            ->addDebugInfo($this)
24
            ->write(self::CODE_INSTANCE.'->endRow();'.PHP_EOL);
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getAllowedParents(): array
31
    {
32
        return [
33
            SheetNode::class,
34
        ];
35
    }
36
}
37