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
Pull Request — master (#23)
by
unknown
03:46
created

CellNode   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 30
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A compile() 0 14 1
A getAllowedParents() 0 6 1
1
<?php
2
3
namespace MyWheels\TwigSpreadsheetBundle\Twig\Node;
4
5
/**
6
 * Class CellNode.
7
 */
8
class CellNode extends BaseNode
9
{
10
    /**
11
     * @param \Twig_Compiler $compiler
12
     */
13 25
    public function compile(\Twig_Compiler $compiler)
14
    {
15 25
        $compiler->addDebugInfo($this)
16 25
            ->write(self::CODE_FIX_CONTEXT)
17 25
            ->write(self::CODE_INSTANCE.'->startCell(')
18 25
                ->subcompile($this->getNode('index'))
19 25
                ->raw(', ')
20 25
                ->subcompile($this->getNode('properties'))
21 25
            ->raw(');'.PHP_EOL)
22 25
            ->write("ob_start();\n")
23 25
            ->subcompile($this->getNode('body'))
24 25
            ->write(self::CODE_INSTANCE.'->setCellValue(trim(ob_get_clean()));'.PHP_EOL)
25 25
            ->write(self::CODE_INSTANCE.'->endCell();'.PHP_EOL);
26 25
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 24
    public function getAllowedParents(): array
32
    {
33
        return [
34 24
            RowNode::class,
35
        ];
36
    }
37
}
38