Code Duplication    Length = 4-4 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 1052-1055 (lines=4) @@
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();
1055
            } elseif (isset($this->scope[$bit])) {
1056
                $this->scope       = &$this->scope[$bit];
1057
                $this->scopeTree[] = $bit;
1058
            } else {

lib/Dwoo/Core.php 1 location

@@ 1699-1702 (lines=4) @@
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();
1702
            } elseif (isset($this->scope[$bit])) {
1703
                if ($this->scope instanceof ArrayAccess) {
1704
                    $tmp         = $this->scope[$bit];
1705
                    $this->scope = &$tmp;