Test Failed
Pull Request — main (#30)
by Peter
06:01 queued 02:57
created
src/FakeCarHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/FakeCar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/FakeCarDataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @throws Exception
52 52
      * @return string|array<string>)
53 53
      */
54
-    public function getVehicleFuelType(int $count = 1): string|array
54
+    public function getVehicleFuelType(int $count = 1): string | array
55 55
     {
56 56
         return FakeCarHelper::getArrayData($this->vehicleData::$vehicleFuelTypes, $count);
57 57
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @throws Exception
105 105
      */
106
-    public function getVehicleEnginePowerValue(): int|string
106
+    public function getVehicleEnginePowerValue(): int | string
107 107
     {
108 108
         ['range' => $range] = $this->vehicleData::$vehicleEnginePower;
109 109
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * @throws Exception
125 125
      */
126
-    public function getVehicleEngineTorqueValue(): int|string
126
+    public function getVehicleEngineTorqueValue(): int | string
127 127
     {
128 128
         ['range' => $range] = $this->vehicleData::$vehicleEngineTorque;
129 129
 
Please login to merge, or discard this patch.
src/FakeCarDataProviderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.