Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2702-2710 (lines=9) @@
2699
   *
2700
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2701
   */
2702
  public function push(/* variadic arguments allowed */)
2703
  {
2704
    if (\func_num_args()) {
2705
      $args = \array_merge([&$this->array], \func_get_args());
2706
      \array_push(...$args);
2707
    }
2708
2709
    return $this;
2710
  }
2711
2712
  /**
2713
   * Get a random value from the current array.
@@ 3681-3689 (lines=9) @@
3678
   *
3679
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3680
   */
3681
  public function unshift(/* variadic arguments allowed */)
3682
  {
3683
    if (\func_num_args()) {
3684
      $args = \array_merge([&$this->array], \func_get_args());
3685
      \array_unshift(...$args);
3686
    }
3687
3688
    return $this;
3689
  }
3690
3691
  /**
3692
   * Get all values from a array.