Code Duplication    Length = 13-14 lines in 2 locations

dist/jate/modules/ExternalModules/pug-php/pug/src/Jade/Compiler/CodeVisitor.php 1 location

@@ 73-86 (lines=14) @@
70
    /**
71
     * @param Nodes\Code $node
72
     */
73
    protected function visitCode(Code $node)
74
    {
75
        $this->visitCodeOpening($node);
76
77
        if (isset($node->block)) {
78
            $this->indents++;
79
            $this->visit($node->block);
80
            $this->indents--;
81
82
            if (!$node->buffer) {
83
                $this->buffer($this->createCode('}'));
84
            }
85
        }
86
    }
87
}
88

dist/jate/modules/ExternalModules/pug-php/pug/src/Jade/Compiler/KeywordsCompiler.php 1 location

@@ 16-28 (lines=13) @@
13
    /**
14
     * @param Nodes\CaseNode $node
15
     */
16
    protected function visitCasenode(CaseNode $node)
17
    {
18
        $this->switchNode = $node;
19
        $this->visit($node->block);
20
21
        if (!isset($this->switchNode)) {
22
            unset($this->switchNode);
23
            $this->indents--;
24
25
            $code = $this->createCode('}');
26
            $this->buffer($code);
27
        }
28
    }
29
30
    /**
31
     * @param string $expression