Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1698-1706 (lines=9) @@
1695
    $keys = explode('.', $key);
1696
1697
    // Crawl though the keys
1698
    while (count($keys) > 1) {
1699
      $key = array_shift($keys);
1700
1701
      if (!$this->has($key)) {
1702
        return false;
1703
      }
1704
1705
      $this->array = &$this->array[$key];
1706
    }
1707
1708
    $key = array_shift($keys);
1709
@@ 1763-1768 (lines=6) @@
1760
    $keys = explode('.', $key);
1761
1762
    // Crawl through the keys
1763
    while (count($keys) > 1) {
1764
      $key = array_shift($keys);
1765
1766
      $this->array[$key] = $this->get(array(), null, $key);
1767
      $this->array = &$this->array[$key];
1768
    }
1769
1770
    // Bind final tree on the array
1771
    $key = array_shift($keys);