Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1542-1550 (lines=9) @@
1539
   *
1540
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1541
   */
1542
  public function push(/* variadic arguments allowed */)
1543
  {
1544
    if (func_num_args()) {
1545
      $args = array_merge(array(&$this->array), func_get_args());
1546
      call_user_func_array('array_push', $args);
1547
    }
1548
1549
    return $this;
1550
  }
1551
1552
  /**
1553
   * Get a random value from the current array.
@@ 2310-2318 (lines=9) @@
2307
   *
2308
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2309
   */
2310
  public function unshift(/* variadic arguments allowed */)
2311
  {
2312
    if (func_num_args()) {
2313
      $args = array_merge(array(&$this->array), func_get_args());
2314
      call_user_func_array('array_unshift', $args);
2315
    }
2316
2317
    return $this;
2318
  }
2319
2320
  /**
2321
   * Get all values from a array.