Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

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