Code Duplication    Length = 5-5 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 2682-2686 (lines=5) @@
2679
                        $output = '$this->globals';
2680
                        array_shift($m[2]);
2681
                        array_shift($m[1]);
2682
                    } elseif ($i === '_root' || $i === '__') {
2683
                        $output = '$this->data';
2684
                        array_shift($m[2]);
2685
                        array_shift($m[1]);
2686
                    } elseif ($i === '_key') {
2687
                        $output = '$tmp_key';
2688
                    } else {
2689
                        $output = '$this->scope';

lib/Dwoo/Core.php 1 location

@@ 1494-1498 (lines=5) @@
1491
                array_shift($m[2]);
1492
                array_shift($m[1]);
1493
            }
1494
        } elseif ($i === '__' || $i === '_root') {
1495
            $cur = $this->data;
1496
            array_shift($m[2]);
1497
            array_shift($m[1]);
1498
        } elseif ($i === '_' || $i === '_parent') {
1499
            $tree = $this->scopeTree;
1500
            $cur  = $this->data;
1501