Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 408-416 (lines=9) @@
405
   *
406
   * @return $this An Arrayy object with pushed elements to the end of array
407
   */
408
  public function push(/* variadic arguments allowed */)
409
  {
410
    if (func_num_args()) {
411
      $args = array_merge([&$this->array], func_get_args());
412
      call_user_func_array('array_push', $args);
413
    }
414
415
    return static::create($this->array);
416
  }
417
418
  /**
419
   * Shifts a specified value off the beginning of array.
@@ 433-441 (lines=9) @@
430
   *
431
   * @return Arrayy Array object with prepended elements to the beginning of array
432
   */
433
  public function unshift(/* variadic arguments allowed */)
434
  {
435
    if (func_num_args()) {
436
      $args = array_merge([&$this->array], func_get_args());
437
      call_user_func_array('array_unshift', $args);
438
    }
439
440
    return static::create($this->array);
441
  }
442
443
  /**
444
   * @return mixed