Code Duplication    Length = 11-11 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3246-3256 (lines=11) @@
3243
     * @return static
3244
     *                <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
3245
     */
3246
    public function push(/* variadic arguments allowed */): self
3247
    {
3248
        $this->generatorToArray();
3249
3250
        if (\func_num_args()) {
3251
            $args = \func_get_args();
3252
            \array_push(...[&$this->array], ...$args);
3253
        }
3254
3255
        return $this;
3256
    }
3257
3258
    /**
3259
     * Get a random value from the current array.
@@ 4499-4509 (lines=11) @@
4496
     * @return static
4497
     *                <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
4498
     */
4499
    public function unshift(/* variadic arguments allowed */): self
4500
    {
4501
        $this->generatorToArray();
4502
4503
        if (\func_num_args()) {
4504
            $args = \func_get_args();
4505
            \array_unshift(...[&$this->array], ...$args);
4506
        }
4507
4508
        return $this;
4509
    }
4510
4511
    /**
4512
     * Get all values from a array.