@@ 2837-2841 (lines=5) @@ | ||
2834 | return static::create(); |
|
2835 | } |
|
2836 | ||
2837 | if ($number === null) { |
|
2838 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
2839 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
2840 | ||
2841 | return static::create($arrayRandValue); |
|
2842 | } |
|
2843 | ||
2844 | $arrayTmp = $this->array; |
|
@@ 2910-2915 (lines=6) @@ | ||
2907 | return static::create(); |
|
2908 | } |
|
2909 | ||
2910 | if ($number === null) { |
|
2911 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
2912 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
2913 | $this->array = $arrayRandValue; |
|
2914 | ||
2915 | return $this; |
|
2916 | } |
|
2917 | ||
2918 | /** @noinspection NonSecureShuffleUsageInspection */ |