Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
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 | |||
38 |