Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2228-2236 (lines=9) @@
2225
   *
2226
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2227
   */
2228
  public function push(/* variadic arguments allowed */)
2229
  {
2230
    if (func_num_args()) {
2231
      $args = \array_merge(array(&$this->array), func_get_args());
2232
      call_user_func_array('array_push', $args);
2233
    }
2234
2235
    return $this;
2236
  }
2237
2238
  /**
2239
   * Get a random value from the current array.
@@ 3142-3150 (lines=9) @@
3139
   *
3140
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3141
   */
3142
  public function unshift(/* variadic arguments allowed */)
3143
  {
3144
    if (func_num_args()) {
3145
      $args = \array_merge(array(&$this->array), func_get_args());
3146
      call_user_func_array('array_unshift', $args);
3147
    }
3148
3149
    return $this;
3150
  }
3151
3152
  /**
3153
   * Get all values from a array.