Code Duplication    Length = 6-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1040-1048 (lines=9) @@
1037
    $keys = explode('.', $key);
1038
1039
    // Crawl though the keys
1040
    while (count($keys) > 1) {
1041
      $key = array_shift($keys);
1042
1043
      if (!$this->has($key)) {
1044
        return false;
1045
      }
1046
1047
      $this->array = &$this->array[$key];
1048
    }
1049
1050
    $key = array_shift($keys);
1051
@@ 1075-1080 (lines=6) @@
1072
    $keys = explode('.', $key);
1073
1074
    // Crawl through the keys
1075
    while (count($keys) > 1) {
1076
      $key = array_shift($keys);
1077
1078
      $this->array[$key] = $this->get(array(), null, $key);
1079
      $this->array = &$this->array[$key];
1080
    }
1081
1082
    // Bind final tree on the array
1083
    $key = array_shift($keys);