Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1906-1914 (lines=9) @@
1903
   *
1904
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1905
   */
1906
  public function push(/* variadic arguments allowed */)
1907
  {
1908
    if (func_num_args()) {
1909
      $args = array_merge(array(&$this->array), func_get_args());
1910
      call_user_func_array('array_push', $args);
1911
    }
1912
1913
    return $this;
1914
  }
1915
1916
  /**
1917
   * Get a random value from the current array.
@@ 2764-2772 (lines=9) @@
2761
   *
2762
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2763
   */
2764
  public function unshift(/* variadic arguments allowed */)
2765
  {
2766
    if (func_num_args()) {
2767
      $args = array_merge(array(&$this->array), func_get_args());
2768
      call_user_func_array('array_unshift', $args);
2769
    }
2770
2771
    return $this;
2772
  }
2773
2774
  /**
2775
   * Get all values from a array.