Code Duplication    Length = 10-10 lines in 4 locations

src/Arrayy.php 4 locations

@@ 1784-1793 (lines=10) @@
1781
   *
1782
   * @return static <p>(Immutable)</p>
1783
   */
1784
  public function mergeAppendKeepIndex(array $array = array(), $recursive = false)
1785
  {
1786
    if (true === $recursive) {
1787
      $result = \array_replace_recursive($this->array, $array);
1788
    } else {
1789
      $result = \array_replace($this->array, $array);
1790
    }
1791
1792
    return static::create($result);
1793
  }
1794
1795
  /**
1796
   * Merge the new $array into the current array.
@@ 1806-1815 (lines=10) @@
1803
   *
1804
   * @return static <p>(Immutable)</p>
1805
   */
1806
  public function mergeAppendNewIndex(array $array = array(), $recursive = false)
1807
  {
1808
    if (true === $recursive) {
1809
      $result = \array_merge_recursive($this->array, $array);
1810
    } else {
1811
      $result = \array_merge($this->array, $array);
1812
    }
1813
1814
    return static::create($result);
1815
  }
1816
1817
  /**
1818
   * Merge the the current array into the $array.
@@ 1827-1836 (lines=10) @@
1824
   *
1825
   * @return static <p>(Immutable)</p>
1826
   */
1827
  public function mergePrependKeepIndex(array $array = array(), $recursive = false)
1828
  {
1829
    if (true === $recursive) {
1830
      $result = \array_replace_recursive($array, $this->array);
1831
    } else {
1832
      $result = \array_replace($array, $this->array);
1833
    }
1834
1835
    return static::create($result);
1836
  }
1837
1838
  /**
1839
   * Merge the current array into the new $array.
@@ 1849-1858 (lines=10) @@
1846
   *
1847
   * @return static <p>(Immutable)</p>
1848
   */
1849
  public function mergePrependNewIndex(array $array = array(), $recursive = false)
1850
  {
1851
    if (true === $recursive) {
1852
      $result = \array_merge_recursive($array, $this->array);
1853
    } else {
1854
      $result = \array_merge($array, $this->array);
1855
    }
1856
1857
    return static::create($result);
1858
  }
1859
1860
  /**
1861
   * Get the min value from an array.