Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2359-2367 (lines=9) @@
2356
   *
2357
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2358
   */
2359
  public function push(/* variadic arguments allowed */)
2360
  {
2361
    if (func_num_args()) {
2362
      $args = \array_merge(array(&$this->array), func_get_args());
2363
      call_user_func_array('array_push', $args);
2364
    }
2365
2366
    return $this;
2367
  }
2368
2369
  /**
2370
   * Get a random value from the current array.
@@ 3273-3281 (lines=9) @@
3270
   *
3271
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3272
   */
3273
  public function unshift(/* variadic arguments allowed */)
3274
  {
3275
    if (func_num_args()) {
3276
      $args = \array_merge(array(&$this->array), func_get_args());
3277
      call_user_func_array('array_unshift', $args);
3278
    }
3279
3280
    return $this;
3281
  }
3282
3283
  /**
3284
   * Get all values from a array.