Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 1612-1620 (lines=9) @@
1609
   *
1610
   * @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array.
1611
   */
1612
  public function push(/* variadic arguments allowed */)
1613
  {
1614
    if (func_num_args()) {
1615
      $args = array_merge(array(&$this->array), func_get_args());
1616
      call_user_func_array('array_push', $args);
1617
    }
1618
1619
    return $this;
1620
  }
1621
1622
  /**
1623
   * Get a random value from the current array.
@@ 2386-2394 (lines=9) @@
2383
   *
2384
   * @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array.
2385
   */
2386
  public function unshift(/* variadic arguments allowed */)
2387
  {
2388
    if (func_num_args()) {
2389
      $args = array_merge(array(&$this->array), func_get_args());
2390
      call_user_func_array('array_unshift', $args);
2391
    }
2392
2393
    return $this;
2394
  }
2395
2396
  /**
2397
   * Get all values from a array.