|
@@ 3064-3069 (lines=6) @@
|
| 3061 |
|
return static::create([], $this->iteratorClass, false); |
| 3062 |
|
} |
| 3063 |
|
|
| 3064 |
|
if ($number === null) { |
| 3065 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3066 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3067 |
|
|
| 3068 |
|
return static::create($arrayRandValue, $this->iteratorClass, false); |
| 3069 |
|
} |
| 3070 |
|
|
| 3071 |
|
$arrayTmp = $this->array; |
| 3072 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
|
@@ 3140-3146 (lines=7) @@
|
| 3137 |
|
return static::create([], $this->iteratorClass, false); |
| 3138 |
|
} |
| 3139 |
|
|
| 3140 |
|
if ($number === null) { |
| 3141 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3142 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3143 |
|
$this->array = $arrayRandValue; |
| 3144 |
|
|
| 3145 |
|
return $this; |
| 3146 |
|
} |
| 3147 |
|
|
| 3148 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3149 |
|
\shuffle($this->array); |