Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
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 | |||
36 |