Code Duplication    Length = 16-18 lines in 2 locations

src/RunOpenCode/Twig/BufferizedTemplate/Tag/TemplateBuffer/BreakPoint.php 1 location

@@ 21-36 (lines=16) @@
18
 *
19
 * @internal
20
 */
21
final class BreakPoint extends \Twig_Node
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function compile(\Twig_Compiler $compiler)
27
    {
28
        $compiler
29
            ->write(sprintf('}, $this), %s);', $this->getAttribute('execution_priority')))
30
            ->write("\n");
31
32
        $compiler
33
            ->write(sprintf('%s->bufferize(Closure::bind(function() use (&$context, &$blocks) { ', $this->getAttribute('bufferized_context_variable_name')))
34
            ->write("\n");
35
    }
36
}
37

src/RunOpenCode/Twig/BufferizedTemplate/Tag/TemplateBuffer/Terminate.php 1 location

@@ 21-38 (lines=18) @@
18
 *
19
 * @internal
20
 */
21
final class Terminate extends \Twig_Node
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function compile(\Twig_Compiler $compiler)
27
    {
28
        $compiler->addDebugInfo($this);
29
30
        $compiler
31
            ->write(sprintf('}, $this), %s);', $this->getAttribute('execution_priority')))
32
            ->write("\n");
33
34
        $compiler
35
            ->write(sprintf('%s->display();', $this->getAttribute('bufferized_context_variable_name')))
36
            ->write("\n");
37
    }
38
}
39