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.
Completed
Push — master ( fd551c...0e9a28 )
by Mewes
15:42 queued 08:25
created

CellNode::getAllowedParents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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