@@ -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 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @throws InvalidArgumentException|RandomException |
51 | 51 | */ |
52 | - public static function getRandomElementFromArray(array $values): int|string |
|
52 | + public static function getRandomElementFromArray(array $values): int | string |
|
53 | 53 | { |
54 | 54 | $elements = static::getRandomElementsFromArray($values, 1); |
55 | 55 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * |
99 | 99 | * @throws Exception |
100 | 100 | */ |
101 | - public static function getWeighted(array $values, int $count = 1): string|int |
|
101 | + public static function getWeighted(array $values, int $count = 1): string | int |
|
102 | 102 | { |
103 | 103 | // TODO: Implement support for $count > 1 |
104 | 104 | $currentTotal = 0; |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @throws RandomException |
126 | 126 | */ |
127 | - public static function getRange(array $range, int $decimals = 0): int|string |
|
127 | + public static function getRange(array $range, int $decimals = 0): int | string |
|
128 | 128 | { |
129 | 129 | if (count($range) !== 2) { |
130 | 130 | throw new RandomException('Invalid range'); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @return string|array<string> |
108 | 108 | */ |
109 | - public function vehicleFuelType(int $count = 1): string|array |
|
109 | + public function vehicleFuelType(int $count = 1): string | array |
|
110 | 110 | { |
111 | 111 | return $this->dataProvider->getVehicleFuelType($count); |
112 | 112 | } |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | |
264 | 264 | public static function validateVin(string $vin, bool $strict = true): bool |
265 | 265 | { |
266 | - if (! $strict) { |
|
266 | + if (!$strict) { |
|
267 | 267 | /** @var string $vin */ |
268 | 268 | $vin = preg_replace('/[^A-Za-z0-9]/', '', $vin); |
269 | 269 | } |