| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 22 | public function compile(\Twig_Compiler $compiler) |
|
| 14 | { |
||
| 15 | 22 | $compiler->addDebugInfo($this) |
|
| 16 | 22 | ->write(self::CODE_FIX_CONTEXT) |
|
| 17 | 22 | ->write(self::CODE_INSTANCE.'->setRowIndex(') |
|
| 18 | 22 | ->subcompile($this->getNode('index')) |
|
| 19 | 22 | ->raw(');'.PHP_EOL) |
|
| 20 | 22 | ->write(self::CODE_INSTANCE.'->startRow('.self::CODE_INSTANCE.'->getRowIndex());'.PHP_EOL) |
|
| 21 | 22 | ->subcompile($this->getNode('body')) |
|
| 22 | 22 | ->addDebugInfo($this) |
|
| 23 | 22 | ->write(self::CODE_INSTANCE.'->endRow();'.PHP_EOL); |
|
| 24 | 22 | } |
|
| 25 | |||
| 36 |