Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1067-1075 (lines=9) @@
1064
    $keys = explode('.', $key);
1065
1066
    // Crawl though the keys
1067
    while (count($keys) > 1) {
1068
      $key = array_shift($keys);
1069
1070
      if (!$this->has($key)) {
1071
        return false;
1072
      }
1073
1074
      $this->array = &$this->array[$key];
1075
    }
1076
1077
    $key = array_shift($keys);
1078
@@ 1102-1107 (lines=6) @@
1099
    $keys = explode('.', $key);
1100
1101
    // Crawl through the keys
1102
    while (count($keys) > 1) {
1103
      $key = array_shift($keys);
1104
1105
      $this->array[$key] = $this->get(array(), null, $key);
1106
      $this->array = &$this->array[$key];
1107
    }
1108
1109
    // Bind final tree on the array
1110
    $key = array_shift($keys);