Code Duplication    Length = 6-9 lines in 2 locations

src/ArrayyAbstract.php 2 locations

@@ 380-385 (lines=6) @@
377
    $keys = explode('.', $key);
378
379
    // Crawl through the keys
380
    while (count($keys) > 1) {
381
      $key = array_shift($keys);
382
383
      $this->array[$key] = $this->get(array(), null, $key);
384
      $this->array = &$this->array[$key];
385
    }
386
387
    // Bind final tree on the array
388
    $key = array_shift($keys);
@@ 406-414 (lines=9) @@
403
    $keys = explode('.', $key);
404
405
    // Crawl though the keys
406
    while (count($keys) > 1) {
407
      $key = array_shift($keys);
408
409
      if (!$this->has($key)) {
410
        return false;
411
      }
412
413
      $this->array = &$this->array[$key];
414
    }
415
416
    $key = array_shift($keys);
417