Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2620-2628 (lines=9) @@
2617
   *
2618
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2619
   */
2620
  public function push(/* variadic arguments allowed */)
2621
  {
2622
    if (\func_num_args()) {
2623
      $args = \array_merge([&$this->array], \func_get_args());
2624
      \array_push(...$args);
2625
    }
2626
2627
    return $this;
2628
  }
2629
2630
  /**
2631
   * Get a random value from the current array.
@@ 3618-3626 (lines=9) @@
3615
   *
3616
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3617
   */
3618
  public function unshift(/* variadic arguments allowed */)
3619
  {
3620
    if (\func_num_args()) {
3621
      $args = \array_merge([&$this->array], \func_get_args());
3622
      \array_unshift(...$args);
3623
    }
3624
3625
    return $this;
3626
  }
3627
3628
  /**
3629
   * Get all values from a array.