Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 1049-1051 (lines=3) @@
1046
                reset($this->scopeTree);
1047
                $this->scope = &$this->data;
1048
                $cnt         = count($this->scopeTree);
1049
                for ($i = 0; $i < $cnt; ++ $i) {
1050
                    $this->scope = &$this->scope[$this->scopeTree[$i]];
1051
                }
1052
            } elseif ($bit === '_root' || $bit === '__') {
1053
                $this->scope     = &$this->data;
1054
                $this->scopeTree = array();

lib/Dwoo/Core.php 1 location

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