Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2656-2658 (lines=3) @@
2653
     */
2654
    public function randomImmutable(int $number = null)
2655
    {
2656
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2657
            return static::create([], $this->iteratorClass, false);
2658
        }
2659
2660
        if ($number === null) {
2661
            /** @noinspection NonSecureArrayRandUsageInspection */
@@ 2732-2734 (lines=3) @@
2729
     */
2730
    public function randomMutable(int $number = null)
2731
    {
2732
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2733
            return static::create([], $this->iteratorClass, false);
2734
        }
2735
2736
        if ($number === null) {
2737
            /** @noinspection NonSecureArrayRandUsageInspection */