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.
Passed
Push — master ( 99c051...63fac8 )
by Mewes
18:46
created

RowNode::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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