Code Duplication    Length = 5-5 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 2691-2695 (lines=5) @@
2688
                        $output = '$this->globals';
2689
                        array_shift($m[2]);
2690
                        array_shift($m[1]);
2691
                    } elseif ($i === '_root' || $i === '__') {
2692
                        $output = '$this->data';
2693
                        array_shift($m[2]);
2694
                        array_shift($m[1]);
2695
                    } elseif ($i === '_key') {
2696
                        $output = '$tmp_key';
2697
                    } else {
2698
                        $output = '$this->scope';

lib/Dwoo/Core.php 1 location

@@ 1561-1565 (lines=5) @@
1558
                array_shift($m[2]);
1559
                array_shift($m[1]);
1560
            }
1561
        } elseif ($i === '__' || $i === '_root') {
1562
            $cur = $this->data;
1563
            array_shift($m[2]);
1564
            array_shift($m[1]);
1565
        } elseif ($i === '_' || $i === '_parent') {
1566
            $tree = $this->scopeTree;
1567
            $cur  = $this->data;
1568