Code Duplication    Length = 6-9 lines in 2 locations

src/ArrayyAbstract.php 2 locations

@@ 371-376 (lines=6) @@
368
    $keys = explode('.', $key);
369
370
    // Crawl through the keys
371
    while (count($keys) > 1) {
372
      $key = array_shift($keys);
373
374
      $this->array[$key] = $this->get(array(), null, $key);
375
      $this->array = &$this->array[$key];
376
    }
377
378
    // Bind final tree on the array
379
    $key = array_shift($keys);
@@ 397-405 (lines=9) @@
394
    $keys = explode('.', $key);
395
396
    // Crawl though the keys
397
    while (count($keys) > 1) {
398
      $key = array_shift($keys);
399
400
      if (!$this->has($key)) {
401
        return false;
402
      }
403
404
      $this->array = &$this->array[$key];
405
    }
406
407
    $key = array_shift($keys);
408