|
@@ 2763-2767 (lines=5) @@
|
| 2760 |
|
return static::create(); |
| 2761 |
|
} |
| 2762 |
|
|
| 2763 |
|
if ($number === null) { |
| 2764 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2765 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2766 |
|
|
| 2767 |
|
return static::create($arrayRandValue); |
| 2768 |
|
} |
| 2769 |
|
|
| 2770 |
|
$arrayTmp = $this->array; |
|
@@ 2836-2841 (lines=6) @@
|
| 2833 |
|
return static::create(); |
| 2834 |
|
} |
| 2835 |
|
|
| 2836 |
|
if ($number === null) { |
| 2837 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2838 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2839 |
|
$this->array = $arrayRandValue; |
| 2840 |
|
|
| 2841 |
|
return $this; |
| 2842 |
|
} |
| 2843 |
|
|
| 2844 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |