Code Duplication    Length = 6-9 lines in 2 locations

src/ArrayyAbstract.php 2 locations

@@ 363-368 (lines=6) @@
360
    $keys = explode('.', $key);
361
362
    // Crawl through the keys
363
    while (count($keys) > 1) {
364
      $key = array_shift($keys);
365
366
      $this->array[$key] = $this->get(array(), null, $key);
367
      $this->array = &$this->array[$key];
368
    }
369
370
    // Bind final tree on the array
371
    $key = array_shift($keys);
@@ 389-397 (lines=9) @@
386
    $keys = explode('.', $key);
387
388
    // Crawl though the keys
389
    while (count($keys) > 1) {
390
      $key = array_shift($keys);
391
392
      if (!$this->has($key)) {
393
        return false;
394
      }
395
396
      $this->array = &$this->array[$key];
397
    }
398
399
    $key = array_shift($keys);
400