Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1724-1732 (lines=9) @@
1721
   *
1722
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1723
   */
1724
  public function push(/* variadic arguments allowed */)
1725
  {
1726
    if (func_num_args()) {
1727
      $args = array_merge(array(&$this->array), func_get_args());
1728
      call_user_func_array('array_push', $args);
1729
    }
1730
1731
    return $this;
1732
  }
1733
1734
  /**
1735
   * Get a random value from the current array.
@@ 2535-2543 (lines=9) @@
2532
   *
2533
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2534
   */
2535
  public function unshift(/* variadic arguments allowed */)
2536
  {
2537
    if (func_num_args()) {
2538
      $args = array_merge(array(&$this->array), func_get_args());
2539
      call_user_func_array('array_unshift', $args);
2540
    }
2541
2542
    return $this;
2543
  }
2544
2545
  /**
2546
   * Get all values from a array.