@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @throws InvalidArgumentException|RandomException |
48 | 48 | */ |
49 | - public static function getRandomElementFromArray(array $values): int|string |
|
49 | + public static function getRandomElementFromArray(array $values): int | string |
|
50 | 50 | { |
51 | 51 | $elements = static::getRandomElementsFromArray($values, 1); |
52 | 52 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return []; |
76 | 76 | } |
77 | 77 | |
78 | - if (! $count) { |
|
78 | + if (!$count) { |
|
79 | 79 | $count = $valuesLength === 1 ? 1 : random_int(1, $valuesLength); |
80 | 80 | } |
81 | 81 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @throws Exception |
97 | 97 | */ |
98 | - public static function getWeighted(array $values, int $count = 1): string|int |
|
98 | + public static function getWeighted(array $values, int $count = 1): string | int |
|
99 | 99 | { |
100 | 100 | $currentTotal = 0; |
101 | 101 | $firstRand = random_int(1, 100); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @throws RandomException |
122 | 122 | */ |
123 | - public static function getRange(array $range, int $decimals = 0): int|string |
|
123 | + public static function getRange(array $range, int $decimals = 0): int | string |
|
124 | 124 | { |
125 | 125 | if (count($range) !== 2) { |
126 | 126 | throw new RandomException('Invalid range'); |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * |
106 | 106 | * @return string|array<string> |
107 | 107 | */ |
108 | - public function vehicleFuelType(int $count = 1): string|array |
|
108 | + public function vehicleFuelType(int $count = 1): string | array |
|
109 | 109 | { |
110 | 110 | return $this->dataProvider->getVehicleFuelType($count); |
111 | 111 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * @return string|array<string>) |
20 | 20 | */ |
21 | - public function getVehicleFuelType(int $count = 1): string|array; |
|
21 | + public function getVehicleFuelType(int $count = 1): string | array; |
|
22 | 22 | |
23 | 23 | public function getVehicleDoorCount(): int; |
24 | 24 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @throws Exception |
54 | 54 | */ |
55 | - public function getVehicleFuelType(int $count = 1): string|array |
|
55 | + public function getVehicleFuelType(int $count = 1): string | array |
|
56 | 56 | { |
57 | 57 | return FakeCarHelper::getArrayData($this->vehicleData::$vehicleFuelTypes, $count); |
58 | 58 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * @throws Exception |
106 | 106 | */ |
107 | - public function getVehicleEnginePowerValue(): int|string |
|
107 | + public function getVehicleEnginePowerValue(): int | string |
|
108 | 108 | { |
109 | 109 | ['range' => $range] = $this->vehicleData::$vehicleEnginePower; |
110 | 110 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * @throws Exception |
126 | 126 | */ |
127 | - public function getVehicleEngineTorqueValue(): int|string |
|
127 | + public function getVehicleEngineTorqueValue(): int | string |
|
128 | 128 | { |
129 | 129 | ['range' => $range] = $this->vehicleData::$vehicleEngineTorque; |
130 | 130 |