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

@@ 1627-1629 (lines=3) @@
1624
                array_pop($this->scopeTree);
1625
                $this->scope = &$this->data;
1626
                $cnt         = count($this->scopeTree);
1627
                for ($i = 0; $i < $cnt; ++ $i) {
1628
                    $this->scope = &$this->scope[$this->scopeTree[$i]];
1629
                }
1630
            } elseif ($bit === '__' || $bit === '_root') {
1631
                $this->scope     = &$this->data;
1632
                $this->scopeTree = array();