Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1692-1700 (lines=9) @@
1689
    $keys = explode('.', $key);
1690
1691
    // Crawl though the keys
1692
    while (count($keys) > 1) {
1693
      $key = array_shift($keys);
1694
1695
      if (!$this->has($key)) {
1696
        return false;
1697
      }
1698
1699
      $this->array = &$this->array[$key];
1700
    }
1701
1702
    $key = array_shift($keys);
1703
@@ 1757-1762 (lines=6) @@
1754
    $keys = explode('.', $key);
1755
1756
    // Crawl through the keys
1757
    while (count($keys) > 1) {
1758
      $key = array_shift($keys);
1759
1760
      $this->array[$key] = $this->get(array(), null, $key);
1761
      $this->array = &$this->array[$key];
1762
    }
1763
1764
    // Bind final tree on the array
1765
    $key = array_shift($keys);