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.
Test Failed
Push — master ( 63fac8...1dd304 )
by Mewes
11:02 queued 06:15
created

DrawingNode::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 9
cts 9
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 1
crap 1
1
<?php
2
3
namespace MewesK\TwigSpreadsheetBundle\Twig\Node;
4
5
/**
6
 * Class DrawingNode.
7
 */
8
class DrawingNode extends BaseNode
9
{
10
    /**
11
     * @param \Twig_Compiler $compiler
12
     */
13 3
    public function compile(\Twig_Compiler $compiler)
14
    {
15 3
        $compiler->addDebugInfo($this)
16 3
            ->write(self::CODE_FIX_CONTEXT)
17 3
            ->write(self::CODE_INSTANCE.'->startDrawing(')
18 3
                ->subcompile($this->getNode('path'))->raw(', ')
19 3
                ->subcompile($this->getNode('properties'))
20 3
            ->raw(');'.PHP_EOL)
21 3
            ->write(self::CODE_INSTANCE.'->endDrawing();'.PHP_EOL);
22 3
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 3
    public function getAllowedParents(): array
28
    {
29
        return [
30 3
            SheetNode::class,
31
            AlignmentNode::class,
32
        ];
33
    }
34
}
35