Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1712-1720 (lines=9) @@
1709
    $keys = explode('.', $key);
1710
1711
    // Crawl though the keys
1712
    while (count($keys) > 1) {
1713
      $key = array_shift($keys);
1714
1715
      if (!$this->has($key)) {
1716
        return false;
1717
      }
1718
1719
      $this->array = &$this->array[$key];
1720
    }
1721
1722
    $key = array_shift($keys);
1723
@@ 1777-1782 (lines=6) @@
1774
    $keys = explode('.', $key);
1775
1776
    // Crawl through the keys
1777
    while (count($keys) > 1) {
1778
      $key = array_shift($keys);
1779
1780
      $this->array[$key] = $this->get(array(), null, $key);
1781
      $this->array = &$this->array[$key];
1782
    }
1783
1784
    // Bind final tree on the array
1785
    $key = array_shift($keys);