Code Duplication    Length = 4-4 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 1043-1046 (lines=4) @@
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();
1046
            } elseif (isset($this->scope[$bit])) {
1047
                $this->scope       = &$this->scope[$bit];
1048
                $this->scopeTree[] = $bit;
1049
            } else {

lib/Dwoo/Core.php 1 location

@@ 1630-1633 (lines=4) @@
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();
1633
            } elseif (isset($this->scope[$bit])) {
1634
                if ($this->scope instanceof ArrayAccess) {
1635
                    $tmp         = $this->scope[$bit];
1636
                    $this->scope = &$tmp;