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

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