Passed
Push — main ( ebe7df...9489b3 )
by Peter
02:53
created
src/FakeCar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
         $map = "0123456789X";
206 206
         $weights = "8765432X098765432";
207 207
         $sum = 0;
208
-        for ($i=0; $i < 17; $i++) {
208
+        for ($i = 0; $i < 17; $i++) {
209 209
             $sum += self::transliterate(substr($vin, $i, 1))
210 210
                     * stripos($map, $weights[$i]);
211 211
         }
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
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public function getVehicleModel(): string;
9 9
     public function getBrandsWithModels(): array;
10 10
     public function getVehicleType(): string;
11
-    public function getVehicleFuelType(): string|array;
11
+    public function getVehicleFuelType(): string | array;
12 12
     public function getVehicleDoorCount(): int;
13 13
     public function getVehicleSeatCount(): int;
14 14
     public function getVehicleProperties(int $count = 0): array;
Please login to merge, or discard this patch.
src/FakeCarData.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -430,18 +430,18 @@
 block discarded – undo
430 430
             'V 220', 'V 280', 'GLK 200', 'GLK 220', 'GLK 250', 'GLK 280', 'GLK 300', 'GLK 320', 'GLK 350', 'B 150',
431 431
             'B 160', 'B 170', 'B 180', 'B 200', 'CLC 160', 'CLC 180', 'CLC 200', 'CLC 230', 'CLC 250', 'CLC 350',
432 432
             'CLC 220', 'R 280', 'R 300', 'R 320', 'R 350', 'R 500', 'R 63 AMG', 'SL 280', 'SL 300', 'SL 320', 'SL 350',
433
-             'SL 380', 'SL 420', 'SL 450', 'SL 500 (550)', 'SL 55 AMG', 'SL 560', 'SL 60 AMG', 'SL 600', 'SL 63 AMG',
434
-             'SL 65 AMG', 'SL 70 AMG', 'SL 73 AMG', 'CLK 200', 'CLK 220', 'CLK 230', 'CLK 240', 'CLK 270', 'CLK 280',
435
-             'CLK 320', 'CLK 350', 'CLK 430', 'CLK 500', 'CLK 55 AMG', 'CLK 63 AMG', '206 пасс.', 'Citan', 'G 230',
436
-             'G 240', 'G 250', 'G 270', 'G 280', 'G 290', 'G 300', 'G 320', 'G 350', 'G 400', 'G 500', 'G 55 AMG',
437
-             'G 63 AMG', 'G 65 AMG', 'SLK 200', 'SLK 230', 'SLK 250', 'SLK 280', 'SLK 300', 'SLK 32 AMG', 'SLK 320',
438
-             'SLK 350', 'SLK 55 AMG', 'CLS 250', 'CLS 280', 'CLS 300', 'CLS 320', 'CLS 350', 'CLS 500', 'CLS 55 AMG',
439
-             'CLS 63 AMG', 'A 140', 'A 150', 'A 160', 'A 170', 'A 180', 'A 190', 'A 200', 'A 210', 'A 220', 'A 250',
440
-             'ML 230', 'ML 250', 'ML 270', 'ML 280', 'ML 300', 'ML 320', 'ML 350', 'ML 400', 'ML 420', 'ML 430',
441
-             'ML 500', 'ML 55 AMG', 'ML 63 AMG', 'GL 320', 'GL 350', 'GL 420', 'GL 450', 'GL 500', 'GL 55 AMG',
442
-             'GL 63 AMG', 'GL 550', 'CL 160', 'CL 180', 'CL 200', 'CL 220', 'CL 230', 'CL 320', 'CL 420', 'CL 500',
443
-             'CL 55 AMG', 'CL 600', 'CL 63 AMG', 'CL 65 AMG', 'CLA-Class', 'CLA 180', 'CLA 200', 'CLA 220', 'CLA 250',
444
-             'S 250', 'S 260', 'S 280', 'S 300', 'S 320', 'S 350', 'S 400', 'S 420', 'S 430', 'S 450', 'S 500', 'S 55',
433
+                'SL 380', 'SL 420', 'SL 450', 'SL 500 (550)', 'SL 55 AMG', 'SL 560', 'SL 60 AMG', 'SL 600', 'SL 63 AMG',
434
+                'SL 65 AMG', 'SL 70 AMG', 'SL 73 AMG', 'CLK 200', 'CLK 220', 'CLK 230', 'CLK 240', 'CLK 270', 'CLK 280',
435
+                'CLK 320', 'CLK 350', 'CLK 430', 'CLK 500', 'CLK 55 AMG', 'CLK 63 AMG', '206 пасс.', 'Citan', 'G 230',
436
+                'G 240', 'G 250', 'G 270', 'G 280', 'G 290', 'G 300', 'G 320', 'G 350', 'G 400', 'G 500', 'G 55 AMG',
437
+                'G 63 AMG', 'G 65 AMG', 'SLK 200', 'SLK 230', 'SLK 250', 'SLK 280', 'SLK 300', 'SLK 32 AMG', 'SLK 320',
438
+                'SLK 350', 'SLK 55 AMG', 'CLS 250', 'CLS 280', 'CLS 300', 'CLS 320', 'CLS 350', 'CLS 500', 'CLS 55 AMG',
439
+                'CLS 63 AMG', 'A 140', 'A 150', 'A 160', 'A 170', 'A 180', 'A 190', 'A 200', 'A 210', 'A 220', 'A 250',
440
+                'ML 230', 'ML 250', 'ML 270', 'ML 280', 'ML 300', 'ML 320', 'ML 350', 'ML 400', 'ML 420', 'ML 430',
441
+                'ML 500', 'ML 55 AMG', 'ML 63 AMG', 'GL 320', 'GL 350', 'GL 420', 'GL 450', 'GL 500', 'GL 55 AMG',
442
+                'GL 63 AMG', 'GL 550', 'CL 160', 'CL 180', 'CL 200', 'CL 220', 'CL 230', 'CL 320', 'CL 420', 'CL 500',
443
+                'CL 55 AMG', 'CL 600', 'CL 63 AMG', 'CL 65 AMG', 'CLA-Class', 'CLA 180', 'CLA 200', 'CLA 220', 'CLA 250',
444
+                'S 250', 'S 260', 'S 280', 'S 300', 'S 320', 'S 350', 'S 400', 'S 420', 'S 430', 'S 450', 'S 500', 'S 55',
445 445
             'S 550', 'S 600', 'S 63 AMG', 'S 65 AMG', 'S 67', '210', 'Sprinter 208 груз.', 'Sprinter 209 груз.',
446 446
             'Sprinter 210 груз.', 'Sprinter 211 груз.', 'Sprinter 212 груз.', 'Sprinter 213 груз.',
447 447
             'Sprinter 216 груз.', 'Sprinter 308 груз.', 'Sprinter 310 груз.', 'Sprinter 311 груз.',
Please login to merge, or discard this patch.
src/FakeCarDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * @throws Exception
50 50
      */
51
-    public function getVehicleFuelType(int $count = 1): string|array
51
+    public function getVehicleFuelType(int $count = 1): string | array
52 52
     {
53 53
         return FakeCarHelper::getArrayData($this->vehicleData::$vehicleFuelTypes, $count);
54 54
     }
Please login to merge, or discard this patch.
src/FakeCarHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,6 +127,6 @@
 block discarded – undo
127 127
      */
128 128
     public static function getRangeWithUnit(array $range, string $unit): string
129 129
     {
130
-        return random_int($range[0], $range[1]) . ' ' . $unit;
130
+        return random_int($range[0], $range[1]).' '.$unit;
131 131
     }
132 132
 }
Please login to merge, or discard this patch.