Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1547-1555 (lines=9) @@
1544
   *
1545
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1546
   */
1547
  public function push(/* variadic arguments allowed */)
1548
  {
1549
    if (func_num_args()) {
1550
      $args = array_merge(array(&$this->array), func_get_args());
1551
      call_user_func_array('array_push', $args);
1552
    }
1553
1554
    return $this;
1555
  }
1556
1557
  /**
1558
   * Get a random value from the current array.
@@ 2315-2323 (lines=9) @@
2312
   *
2313
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2314
   */
2315
  public function unshift(/* variadic arguments allowed */)
2316
  {
2317
    if (func_num_args()) {
2318
      $args = array_merge(array(&$this->array), func_get_args());
2319
      call_user_func_array('array_unshift', $args);
2320
    }
2321
2322
    return $this;
2323
  }
2324
2325
  /**
2326
   * Get all values from a array.