Code Duplication    Length = 10-10 lines in 4 locations

src/Arrayy.php 4 locations

@@ 1654-1663 (lines=10) @@
1651
   *
1652
   * @return Arrayy (Immutable)
1653
   */
1654
  public function mergeAppendKeepIndex(array $array = array(), $recursive = false)
1655
  {
1656
    if (true === $recursive) {
1657
      $result = array_replace_recursive($this->array, $array);
1658
    } else {
1659
      $result = array_replace($this->array, $array);
1660
    }
1661
1662
    return static::create($result);
1663
  }
1664
1665
  /**
1666
   * Merge the new $array into the current array.
@@ 1676-1685 (lines=10) @@
1673
   *
1674
   * @return Arrayy (Immutable)
1675
   */
1676
  public function mergeAppendNewIndex(array $array = array(), $recursive = false)
1677
  {
1678
    if (true === $recursive) {
1679
      $result = array_merge_recursive($this->array, $array);
1680
    } else {
1681
      $result = array_merge($this->array, $array);
1682
    }
1683
1684
    return static::create($result);
1685
  }
1686
1687
  /**
1688
   * Merge the the current array into the $array.
@@ 1697-1706 (lines=10) @@
1694
   *
1695
   * @return Arrayy (Immutable)
1696
   */
1697
  public function mergePrependKeepIndex(array $array = array(), $recursive = false)
1698
  {
1699
    if (true === $recursive) {
1700
      $result = array_replace_recursive($array, $this->array);
1701
    } else {
1702
      $result = array_replace($array, $this->array);
1703
    }
1704
1705
    return static::create($result);
1706
  }
1707
1708
  /**
1709
   * Merge the current array into the new $array.
@@ 1719-1728 (lines=10) @@
1716
   *
1717
   * @return Arrayy (Immutable)
1718
   */
1719
  public function mergePrependNewIndex(array $array = array(), $recursive = false)
1720
  {
1721
    if (true === $recursive) {
1722
      $result = array_merge_recursive($array, $this->array);
1723
    } else {
1724
      $result = array_merge($array, $this->array);
1725
    }
1726
1727
    return static::create($result);
1728
  }
1729
1730
  /**
1731
   * Get the min value from an array.