Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1708-1716 (lines=9) @@
1705
    $keys = explode('.', $key);
1706
1707
    // Crawl though the keys
1708
    while (count($keys) > 1) {
1709
      $key = array_shift($keys);
1710
1711
      if (!$this->has($key)) {
1712
        return false;
1713
      }
1714
1715
      $this->array = &$this->array[$key];
1716
    }
1717
1718
    $key = array_shift($keys);
1719
@@ 1773-1778 (lines=6) @@
1770
    $keys = explode('.', $key);
1771
1772
    // Crawl through the keys
1773
    while (count($keys) > 1) {
1774
      $key = array_shift($keys);
1775
1776
      $this->array[$key] = $this->get(array(), null, $key);
1777
      $this->array = &$this->array[$key];
1778
    }
1779
1780
    // Bind final tree on the array
1781
    $key = array_shift($keys);