Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3060-3062 (lines=3) @@
3057
     */
3058
    public function randomImmutable(int $number = null)
3059
    {
3060
        if (\count($this->array, \COUNT_NORMAL) === 0) {
3061
            return static::create([], $this->iteratorClass, false);
3062
        }
3063
3064
        if ($number === null) {
3065
            /** @noinspection NonSecureArrayRandUsageInspection */
@@ 3136-3138 (lines=3) @@
3133
     */
3134
    public function randomMutable(int $number = null)
3135
    {
3136
        if (\count($this->array, \COUNT_NORMAL) === 0) {
3137
            return static::create([], $this->iteratorClass, false);
3138
        }
3139
3140
        if ($number === null) {
3141
            /** @noinspection NonSecureArrayRandUsageInspection */