|
@@ 2769-2773 (lines=5) @@
|
| 2766 |
|
return static::create(); |
| 2767 |
|
} |
| 2768 |
|
|
| 2769 |
|
if ($number === null) { |
| 2770 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2771 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2772 |
|
|
| 2773 |
|
return static::create($arrayRandValue); |
| 2774 |
|
} |
| 2775 |
|
|
| 2776 |
|
$arrayTmp = $this->array; |
|
@@ 2842-2847 (lines=6) @@
|
| 2839 |
|
return static::create(); |
| 2840 |
|
} |
| 2841 |
|
|
| 2842 |
|
if ($number === null) { |
| 2843 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2844 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2845 |
|
$this->array = $arrayRandValue; |
| 2846 |
|
|
| 2847 |
|
return $this; |
| 2848 |
|
} |
| 2849 |
|
|
| 2850 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |