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

DocumentNode::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 15
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 15
cts 15
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 14
nc 1
nop 1
crap 1
1
<?php
2
3
namespace MewesK\TwigSpreadsheetBundle\Twig\Node;
4
5
use MewesK\TwigSpreadsheetBundle\Wrapper\PhpSpreadsheetWrapper;
6
7
/**
8
 * Class DocumentNode.
9
 */
10
class DocumentNode extends BaseNode
11
{
12
    /**
13
     * @param \Twig_Compiler $compiler
14
     */
15 29
    public function compile(\Twig_Compiler $compiler)
16
    {
17 29
        $compiler->addDebugInfo($this)
18 29
            ->write("ob_start();\n")
19 29
            ->write(self::CODE_INSTANCE.' = new '.PhpSpreadsheetWrapper::class.'($context, $this->env, ')
20 29
                ->repr($this->attributes)
21 29
            ->raw(');'.PHP_EOL)
22 29
            ->write(self::CODE_INSTANCE.'->startDocument(')
23 29
                ->subcompile($this->getNode('properties'))
24 29
            ->raw(');'.PHP_EOL)
25 29
            ->subcompile($this->getNode('body'))
26 29
            ->addDebugInfo($this)
27 29
            ->write("ob_end_clean();\n")
28 29
            ->write(self::CODE_INSTANCE.'->endDocument();'.PHP_EOL)
29 29
            ->write('unset('.self::CODE_INSTANCE.');'.PHP_EOL);
30 29
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35 4
    public function getAllowedParents(): array
36
    {
37 4
        return [];
38
    }
39
}
40