Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3064-3066 (lines=3) @@
3061
     */
3062
    public function randomImmutable(int $number = null)
3063
    {
3064
        if (\count($this->array, \COUNT_NORMAL) === 0) {
3065
            return static::create([], $this->iteratorClass, false);
3066
        }
3067
3068
        if ($number === null) {
3069
            /** @noinspection NonSecureArrayRandUsageInspection */
@@ 3140-3142 (lines=3) @@
3137
     */
3138
    public function randomMutable(int $number = null)
3139
    {
3140
        if (\count($this->array, \COUNT_NORMAL) === 0) {
3141
            return static::create([], $this->iteratorClass, false);
3142
        }
3143
3144
        if ($number === null) {
3145
            /** @noinspection NonSecureArrayRandUsageInspection */