Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1634-1642 (lines=9) @@
1631
   *
1632
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1633
   */
1634
  public function push(/* variadic arguments allowed */)
1635
  {
1636
    if (func_num_args()) {
1637
      $args = array_merge(array(&$this->array), func_get_args());
1638
      call_user_func_array('array_push', $args);
1639
    }
1640
1641
    return $this;
1642
  }
1643
1644
  /**
1645
   * Get a random value from the current array.
@@ 2408-2416 (lines=9) @@
2405
   *
2406
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2407
   */
2408
  public function unshift(/* variadic arguments allowed */)
2409
  {
2410
    if (func_num_args()) {
2411
      $args = array_merge(array(&$this->array), func_get_args());
2412
      call_user_func_array('array_unshift', $args);
2413
    }
2414
2415
    return $this;
2416
  }
2417
2418
  /**
2419
   * Get all values from a array.