Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1728-1736 (lines=9) @@
1725
    $keys = explode('.', $key);
1726
1727
    // Crawl though the keys
1728
    while (count($keys) > 1) {
1729
      $key = array_shift($keys);
1730
1731
      if (!$this->has($key)) {
1732
        return false;
1733
      }
1734
1735
      $this->array = &$this->array[$key];
1736
    }
1737
1738
    $key = array_shift($keys);
1739
@@ 1793-1798 (lines=6) @@
1790
    $keys = explode('.', $key);
1791
1792
    // Crawl through the keys
1793
    while (count($keys) > 1) {
1794
      $key = array_shift($keys);
1795
1796
      $this->array[$key] = $this->get(array(), null, $key);
1797
      $this->array = &$this->array[$key];
1798
    }
1799
1800
    // Bind final tree on the array
1801
    $key = array_shift($keys);