Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

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