GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 47d764...311795 )
by Igor
02:54 queued 01:29
created
examples/RecurringRoutes/CreateSchedule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,5 +26,5 @@
 block discarded – undo
26 26
 
27 27
     print_r($schedule);
28 28
 } catch (\Exception $e) {
29
-    echo $e->getMessage() . PHP_EOL;
29
+    echo $e->getMessage().PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
examples/RecurringRoutes/ReplaceRouteSchedule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,5 +26,5 @@
 block discarded – undo
26 26
 
27 27
     print_r($schedule);
28 28
 } catch (\Exception $e) {
29
-    echo $e->getMessage() . PHP_EOL;
29
+    echo $e->getMessage().PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
examples/RecurringRoutes/UpdateSchedule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,5 +26,5 @@
 block discarded – undo
26 26
 
27 27
     print_r($schedule);
28 28
 } catch (\Exception $e) {
29
-    echo $e->getMessage() . PHP_EOL;
29
+    echo $e->getMessage().PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
examples/RecurringRoutes/UpdateRouteSchedule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,5 +26,5 @@
 block discarded – undo
26 26
 
27 27
     print_r($schedule);
28 28
 } catch (\Exception $e) {
29
-    echo $e->getMessage() . PHP_EOL;
29
+    echo $e->getMessage().PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/RecurringRoutes/Schedule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function __construct(?array $params = null)
37 37
     {
38
-        if ($params !== null) {
38
+        if ($params!==null) {
39 39
             $this->fillFromArray($params);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
UnitTestFiles/Test/V5/VehicleTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
     {
438 438
         $vehicleProfile = new VehicleProfile();
439 439
 
440
-        $vehProfileId = self::$createdVehicleProfiles[sizeof(self::$createdVehicleProfiles)-1]['vehicle_profile_id'];
440
+        $vehProfileId = self::$createdVehicleProfiles[sizeof(self::$createdVehicleProfiles) - 1]['vehicle_profile_id'];
441 441
 
442 442
         $result = $vehicleProfile->removeVehicleProfile($vehProfileId);
443 443
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     {
455 455
         $vehicleProfile = new VehicleProfile();
456 456
 
457
-        $vehProfileId = self::$createdVehicleProfiles[sizeof(self::$createdVehicleProfiles)-1]['vehicle_profile_id'];
457
+        $vehProfileId = self::$createdVehicleProfiles[sizeof(self::$createdVehicleProfiles) - 1]['vehicle_profile_id'];
458 458
 
459 459
         $result = $vehicleProfile->getVehicleProfileById($vehProfileId);
460 460
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
     {
508 508
         $vehicle = new Vehicle();
509 509
 
510
-        $vehicle->vehicle_alias = self::$createdVehicles[0]['vehicle_alias'] .' Updated';
510
+        $vehicle->vehicle_alias = self::$createdVehicles[0]['vehicle_alias'].' Updated';
511 511
         $vehicle->vehicle_vin = '11111111111111111';
512 512
         $vehicle->vehicle_id = self::$createdVehicles[0]['vehicle_id'];
513 513
 
Please login to merge, or discard this patch.
src/Route4Me/V5/Vehicles/DataTypes/Vehicle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
         $vehicleId = $vehicleParams['vehicle_id'];
236 236
 
237 237
         $response = Route4Me::makeRequst([
238
-            'url' => Endpoint::Vehicles . '/' . $vehicleId,
238
+            'url' => Endpoint::Vehicles.'/'.$vehicleId,
239 239
             'method' => 'DELETE'
240 240
         ]);
241 241
 
Please login to merge, or discard this patch.
src/Route4Me/Vehicles/VehicleV4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
      */
261 261
     public function createVehicle($params)
262 262
     {
263
-        $excludeFields = ['vehicle_id','is_deleted','created_time','timestamp_added','timestamp_removed'];
263
+        $excludeFields = ['vehicle_id', 'is_deleted', 'created_time', 'timestamp_added', 'timestamp_removed'];
264 264
         $allBodyFields = Route4Me::getObjectProperties(new self(), $excludeFields);
265 265
 
266 266
         //Route4Me::setBaseUrl(Endpoint::BASE_URL);
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblem.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     public static function get($params)
157 157
     {
158 158
         $allQueryFields = ['state', 'limit', 'format', 'offset',
159
-        'optimization_problem_id', 'wait_for_final_state','start_date','end_date', ];
159
+        'optimization_problem_id', 'wait_for_final_state', 'start_date', 'end_date', ];
160 160
 
161 161
         $result = Route4Me::makeRequst([
162 162
             'url'       => Endpoint::OPTIMIZATION_PROBLEM,
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
                 $query = Route4Me::generateRequestParameters($allQueryFields, $params);
206 206
             }
207 207
 
208
-            if ((isset($params['addresses']) && sizeof($params['addresses']) > 0)
209
-                || (isset($params['parameters']) && sizeof($params['parameters']) > 0)
208
+            if ((isset($params['addresses']) && sizeof($params['addresses'])>0)
209
+                || (isset($params['parameters']) && sizeof($params['parameters'])>0)
210 210
             ) {
211 211
                 $body = Route4Me::generateRequestParameters($allBodyFields, $params);
212 212
             }
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
                 $query = Route4Me::generateRequestParameters($allQueryFields, $params);
216 216
             }
217 217
 
218
-            if ((isset($params->addresses) && sizeof($params->addresses) > 0)
219
-                || (isset($params->parameters) && sizeof($params->parameters) > 0)
218
+            if ((isset($params->addresses) && sizeof($params->addresses)>0)
219
+                || (isset($params->parameters) && sizeof($params->parameters)>0)
220 220
             ) {
221 221
                 $body = Route4Me::generateRequestParameters($allBodyFields, $params);
222 222
             }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $rOptimization = $optimizations[rand(0, sizeof($optimizations) - 1)];
250 250
 
251 251
         if (!isset($rOptimization->optimization_problem_id)) {
252
-            if (sizeof($optimizations) > 9) {
252
+            if (sizeof($optimizations)>9) {
253 253
                 $this->getRandomOptimizationId($offset, $limit);
254 254
             } else {
255 255
                 return null;
@@ -261,13 +261,13 @@  discard block
 block discarded – undo
261 261
 
262 262
     public function getAddresses($opt_id)
263 263
     {
264
-        if (null == $opt_id) {
264
+        if (null==$opt_id) {
265 265
             return null;
266 266
         }
267 267
 
268 268
         $params = ['optimization_problem_id' => $opt_id];
269 269
 
270
-        $optimization = (array) $this->get($params);
270
+        $optimization = (array)$this->get($params);
271 271
 
272 272
         $addresses = $optimization['addresses'];
273 273
 
@@ -276,9 +276,9 @@  discard block
 block discarded – undo
276 276
 
277 277
     public function getRandomAddressFromOptimization($opt_id)
278 278
     {
279
-        $addresses = (array) $this->getAddresses($opt_id);
279
+        $addresses = (array)$this->getAddresses($opt_id);
280 280
 
281
-        if (null == $addresses) {
281
+        if (null==$addresses) {
282 282
             echo 'There are no addresses in this optimization!.. Try again.';
283 283
 
284 284
             return null;
Please login to merge, or discard this patch.