Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2649-2657 (lines=9) @@
2646
   *
2647
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2648
   */
2649
  public function push(/* variadic arguments allowed */)
2650
  {
2651
    if (\func_num_args()) {
2652
      $args = \array_merge(array(&$this->array), \func_get_args());
2653
      \call_user_func_array('array_push', $args);
2654
    }
2655
2656
    return $this;
2657
  }
2658
2659
  /**
2660
   * Get a random value from the current array.
@@ 3648-3656 (lines=9) @@
3645
   *
3646
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3647
   */
3648
  public function unshift(/* variadic arguments allowed */)
3649
  {
3650
    if (\func_num_args()) {
3651
      $args = \array_merge(array(&$this->array), \func_get_args());
3652
      \call_user_func_array('array_unshift', $args);
3653
    }
3654
3655
    return $this;
3656
  }
3657
3658
  /**
3659
   * Get all values from a array.