Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public function compile(Twig_Compiler $compiler) |
|
17 | { |
||
18 | 1 | $name = $this->getAttribute('name'); |
|
19 | |||
20 | $compiler |
||
21 | 1 | ->addDebugInfo($this) |
|
22 | 1 | ->write("public function block_{$name}(\$context, array \$blocks = array())\n", "{\n") |
|
23 | 1 | ->indent() |
|
24 | 1 | ->subcompile($this->getNode('body')) |
|
25 | 1 | ->outdent() |
|
26 | 1 | ->write("}\n\n") |
|
27 | ; |
||
28 | 1 | } |
|
29 | } |
||
30 |