Code Duplication    Length = 10-10 lines in 4 locations

src/Arrayy.php 4 locations

@@ 2036-2045 (lines=10) @@
2033
   *
2034
   * @return static <p>(Immutable)</p>
2035
   */
2036
  public function mergeAppendKeepIndex(array $array = array(), $recursive = false)
2037
  {
2038
    if (true === $recursive) {
2039
      $result = \array_replace_recursive($this->array, $array);
2040
    } else {
2041
      $result = \array_replace($this->array, $array);
2042
    }
2043
2044
    return static::create($result);
2045
  }
2046
2047
  /**
2048
   * Merge the new $array into the current array.
@@ 2058-2067 (lines=10) @@
2055
   *
2056
   * @return static <p>(Immutable)</p>
2057
   */
2058
  public function mergeAppendNewIndex(array $array = array(), $recursive = false)
2059
  {
2060
    if (true === $recursive) {
2061
      $result = \array_merge_recursive($this->array, $array);
2062
    } else {
2063
      $result = \array_merge($this->array, $array);
2064
    }
2065
2066
    return static::create($result);
2067
  }
2068
2069
  /**
2070
   * Merge the the current array into the $array.
@@ 2079-2088 (lines=10) @@
2076
   *
2077
   * @return static <p>(Immutable)</p>
2078
   */
2079
  public function mergePrependKeepIndex(array $array = array(), $recursive = false)
2080
  {
2081
    if (true === $recursive) {
2082
      $result = \array_replace_recursive($array, $this->array);
2083
    } else {
2084
      $result = \array_replace($array, $this->array);
2085
    }
2086
2087
    return static::create($result);
2088
  }
2089
2090
  /**
2091
   * Merge the current array into the new $array.
@@ 2101-2110 (lines=10) @@
2098
   *
2099
   * @return static <p>(Immutable)</p>
2100
   */
2101
  public function mergePrependNewIndex(array $array = array(), $recursive = false)
2102
  {
2103
    if (true === $recursive) {
2104
      $result = \array_merge_recursive($array, $this->array);
2105
    } else {
2106
      $result = \array_merge($array, $this->array);
2107
    }
2108
2109
    return static::create($result);
2110
  }
2111
2112
  /**
2113
   * Get the min value from an array.