Code Duplication    Length = 10-10 lines in 4 locations

src/Arrayy.php 4 locations

@@ 1927-1936 (lines=10) @@
1924
   *
1925
   * @return static <p>(Immutable)</p>
1926
   */
1927
  public function mergeAppendKeepIndex(array $array = array(), $recursive = false)
1928
  {
1929
    if (true === $recursive) {
1930
      $result = \array_replace_recursive($this->array, $array);
1931
    } else {
1932
      $result = \array_replace($this->array, $array);
1933
    }
1934
1935
    return static::create($result);
1936
  }
1937
1938
  /**
1939
   * Merge the new $array into the current array.
@@ 1949-1958 (lines=10) @@
1946
   *
1947
   * @return static <p>(Immutable)</p>
1948
   */
1949
  public function mergeAppendNewIndex(array $array = array(), $recursive = false)
1950
  {
1951
    if (true === $recursive) {
1952
      $result = \array_merge_recursive($this->array, $array);
1953
    } else {
1954
      $result = \array_merge($this->array, $array);
1955
    }
1956
1957
    return static::create($result);
1958
  }
1959
1960
  /**
1961
   * Merge the the current array into the $array.
@@ 1970-1979 (lines=10) @@
1967
   *
1968
   * @return static <p>(Immutable)</p>
1969
   */
1970
  public function mergePrependKeepIndex(array $array = array(), $recursive = false)
1971
  {
1972
    if (true === $recursive) {
1973
      $result = \array_replace_recursive($array, $this->array);
1974
    } else {
1975
      $result = \array_replace($array, $this->array);
1976
    }
1977
1978
    return static::create($result);
1979
  }
1980
1981
  /**
1982
   * Merge the current array into the new $array.
@@ 1992-2001 (lines=10) @@
1989
   *
1990
   * @return static <p>(Immutable)</p>
1991
   */
1992
  public function mergePrependNewIndex(array $array = array(), $recursive = false)
1993
  {
1994
    if (true === $recursive) {
1995
      $result = \array_merge_recursive($array, $this->array);
1996
    } else {
1997
      $result = \array_merge($array, $this->array);
1998
    }
1999
2000
    return static::create($result);
2001
  }
2002
2003
  /**
2004
   * Get the min value from an array.