Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1808-1816 (lines=9) @@
1805
   *
1806
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1807
   */
1808
  public function push(/* variadic arguments allowed */)
1809
  {
1810
    if (func_num_args()) {
1811
      $args = array_merge(array(&$this->array), func_get_args());
1812
      call_user_func_array('array_push', $args);
1813
    }
1814
1815
    return $this;
1816
  }
1817
1818
  /**
1819
   * Get a random value from the current array.
@@ 2621-2629 (lines=9) @@
2618
   *
2619
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2620
   */
2621
  public function unshift(/* variadic arguments allowed */)
2622
  {
2623
    if (func_num_args()) {
2624
      $args = array_merge(array(&$this->array), func_get_args());
2625
      call_user_func_array('array_unshift', $args);
2626
    }
2627
2628
    return $this;
2629
  }
2630
2631
  /**
2632
   * Get all values from a array.