Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2638-2646 (lines=9) @@
2635
     * @return static
2636
     *                <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p>
2637
     */
2638
    public function push(/* variadic arguments allowed */): self
2639
    {
2640
        if (\func_num_args()) {
2641
            $args = \array_merge([&$this->array], \func_get_args());
2642
            \array_push(...$args);
2643
        }
2644
2645
        return $this;
2646
    }
2647
2648
    /**
2649
     * Get a random value from the current array.
@@ 3618-3626 (lines=9) @@
3615
     * @return static
3616
     *                <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p>
3617
     */
3618
    public function unshift(/* variadic arguments allowed */): self
3619
    {
3620
        if (\func_num_args()) {
3621
            $args = \array_merge([&$this->array], \func_get_args());
3622
            \array_unshift(...$args);
3623
        }
3624
3625
        return $this;
3626
    }
3627
3628
    /**
3629
     * Get all values from a array.