Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

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