Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 4 | public function compile(\Twig_Compiler $compiler) |
|
29 | { |
||
30 | 4 | $compiler->addDebugInfo($this); |
|
31 | |||
32 | $compiler |
||
33 | 4 | ->write(sprintf('%s = new \\%s();', $this->getAttribute('bufferized_context_variable_name'), BufferManager::class)) |
|
34 | 4 | ->write("\n"); |
|
35 | |||
36 | $compiler |
||
37 | 4 | ->write(sprintf('%s->bufferize(Closure::bind(function() use (&$context, &$blocks) {', $this->getAttribute('bufferized_context_variable_name'))) |
|
38 | 4 | ->write("\n"); |
|
39 | 4 | } |
|
40 | } |
||
41 |