Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2463-2471 (lines=9) @@
2460
   *
2461
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2462
   */
2463
  public function push(/* variadic arguments allowed */)
2464
  {
2465
    if (func_num_args()) {
2466
      $args = \array_merge(array(&$this->array), func_get_args());
2467
      call_user_func_array('array_push', $args);
2468
    }
2469
2470
    return $this;
2471
  }
2472
2473
  /**
2474
   * Get a random value from the current array.
@@ 3377-3385 (lines=9) @@
3374
   *
3375
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3376
   */
3377
  public function unshift(/* variadic arguments allowed */)
3378
  {
3379
    if (func_num_args()) {
3380
      $args = \array_merge(array(&$this->array), func_get_args());
3381
      call_user_func_array('array_unshift', $args);
3382
    }
3383
3384
    return $this;
3385
  }
3386
3387
  /**
3388
   * Get all values from a array.