Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1861-1869 (lines=9) @@
1858
   *
1859
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1860
   */
1861
  public function push(/* variadic arguments allowed */)
1862
  {
1863
    if (func_num_args()) {
1864
      $args = array_merge(array(&$this->array), func_get_args());
1865
      call_user_func_array('array_push', $args);
1866
    }
1867
1868
    return $this;
1869
  }
1870
1871
  /**
1872
   * Get a random value from the current array.
@@ 2714-2722 (lines=9) @@
2711
   *
2712
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2713
   */
2714
  public function unshift(/* variadic arguments allowed */)
2715
  {
2716
    if (func_num_args()) {
2717
      $args = array_merge(array(&$this->array), func_get_args());
2718
      call_user_func_array('array_unshift', $args);
2719
    }
2720
2721
    return $this;
2722
  }
2723
2724
  /**
2725
   * Get all values from a array.