Code Duplication    Length = 5-5 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 2721-2725 (lines=5) @@
2718
                        $output = '$this->globals';
2719
                        array_shift($m[2]);
2720
                        array_shift($m[1]);
2721
                    } elseif ($i === '_root' || $i === '__') {
2722
                        $output = '$this->data';
2723
                        array_shift($m[2]);
2724
                        array_shift($m[1]);
2725
                    } elseif ($i === '_key') {
2726
                        $output = '$tmp_key';
2727
                    } else {
2728
                        $output = '$this->scope';

lib/Dwoo/Core.php 1 location

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