Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2193-2201 (lines=9) @@
2190
   *
2191
   * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2192
   */
2193
  public function push(/* variadic arguments allowed */)
2194
  {
2195
    if (func_num_args()) {
2196
      $args = \array_merge(array(&$this->array), func_get_args());
2197
      call_user_func_array('array_push', $args);
2198
    }
2199
2200
    return $this;
2201
  }
2202
2203
  /**
2204
   * Get a random value from the current array.
@@ 3103-3111 (lines=9) @@
3100
   *
3101
   * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3102
   */
3103
  public function unshift(/* variadic arguments allowed */)
3104
  {
3105
    if (func_num_args()) {
3106
      $args = \array_merge(array(&$this->array), func_get_args());
3107
      call_user_func_array('array_unshift', $args);
3108
    }
3109
3110
    return $this;
3111
  }
3112
3113
  /**
3114
   * Get all values from a array.