Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1399-1407 (lines=9) @@
1396
    $keys = explode('.', $key);
1397
1398
    // Crawl though the keys
1399
    while (count($keys) > 1) {
1400
      $key = array_shift($keys);
1401
1402
      if (!$this->has($key)) {
1403
        return false;
1404
      }
1405
1406
      $this->array = &$this->array[$key];
1407
    }
1408
1409
    $key = array_shift($keys);
1410
@@ 1464-1469 (lines=6) @@
1461
    $keys = explode('.', $key);
1462
1463
    // Crawl through the keys
1464
    while (count($keys) > 1) {
1465
      $key = array_shift($keys);
1466
1467
      $this->array[$key] = $this->get(array(), null, $key);
1468
      $this->array = &$this->array[$key];
1469
    }
1470
1471
    // Bind final tree on the array
1472
    $key = array_shift($keys);