Code Duplication    Length = 6-9 lines in 2 locations

src/ArrayyAbstract.php 2 locations

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