Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

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