Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 1040-1042 (lines=3) @@
1037
                reset($this->scopeTree);
1038
                $this->scope = &$this->data;
1039
                $cnt         = count($this->scopeTree);
1040
                for ($i = 0; $i < $cnt; ++ $i) {
1041
                    $this->scope = &$this->scope[$this->scopeTree[$i]];
1042
                }
1043
            } elseif ($bit === '_root' || $bit === '__') {
1044
                $this->scope     = &$this->data;
1045
                $this->scopeTree = array();

lib/Dwoo/Core.php 1 location

@@ 1694-1696 (lines=3) @@
1691
                array_pop($this->scopeTree);
1692
                $this->scope = &$this->data;
1693
                $cnt         = count($this->scopeTree);
1694
                for ($i = 0; $i < $cnt; ++ $i) {
1695
                    $this->scope = &$this->scope[$this->scopeTree[$i]];
1696
                }
1697
            } elseif ($bit === '__' || $bit === '_root') {
1698
                $this->scope     = &$this->data;
1699
                $this->scopeTree = array();