Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1666-1674 (lines=9) @@
1663
   *
1664
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1665
   */
1666
  public function push(/* variadic arguments allowed */)
1667
  {
1668
    if (func_num_args()) {
1669
      $args = array_merge(array(&$this->array), func_get_args());
1670
      call_user_func_array('array_push', $args);
1671
    }
1672
1673
    return $this;
1674
  }
1675
1676
  /**
1677
   * Get a random value from the current array.
@@ 2475-2483 (lines=9) @@
2472
   *
2473
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2474
   */
2475
  public function unshift(/* variadic arguments allowed */)
2476
  {
2477
    if (func_num_args()) {
2478
      $args = array_merge(array(&$this->array), func_get_args());
2479
      call_user_func_array('array_unshift', $args);
2480
    }
2481
2482
    return $this;
2483
  }
2484
2485
  /**
2486
   * Get all values from a array.