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 ( c183ba...801d3d )
by Igor
09:46
created
src/Route4Me/V5/OptimizationProblem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     public static function get($params)
128 128
     {
129 129
         $allQueryFields = ['state', 'limit', 'format', 'offset',
130
-            'optimization_problem_id', 'wait_for_final_state','start_date','end_date', ];
130
+            'optimization_problem_id', 'wait_for_final_state', 'start_date', 'end_date', ];
131 131
 
132 132
         $result = Route4Me::makeRequst([
133 133
             'url'       => \Route4Me\Enum\Endpoint::OPTIMIZATION_PROBLEM,
Please login to merge, or discard this patch.
src/Route4Me/V5/Vehicles/DataTypes/VehicleProfile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         //$vehicleProfileID = isset($params['vehicle_profile_id']) ? $params['vehicle_profile_id'] : null;
194 194
 
195 195
         $response = Route4Me::makeRequst([
196
-            'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId,
196
+            'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfileId,
197 197
             'method' => 'DELETE',
198 198
             'HTTPHEADER' => 'Content-Type: application/json; Accept: application/json',
199 199
         ]);
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     public function getVehicleProfileById($vehicleProfileId)
243 243
     {
244 244
         $response = Route4Me::makeRequst([
245
-            'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId,
245
+            'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfileId,
246 246
             'method' => 'GET',
247 247
         ]);
248 248
 
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblemParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             $param->addAddress($address);
43 43
         }
44 44
 
45
-        if (isset($params['depots'] )) {
45
+        if (isset($params['depots'])) {
46 46
             foreach ($params['depots'] as $depot) {
47 47
                 if (!($depot instanceof Address)) {
48 48
                     $depot = Address::fromArray($depot);
Please login to merge, or discard this patch.
src/Route4Me/Common.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 
12 12
     public function toArray()
13 13
     {
14
-        $params = array_filter(get_object_vars($this), function ($item) {
15
-            return (null !== $item) && !(is_array($item) && !count($item));
14
+        $params = array_filter(get_object_vars($this), function($item) {
15
+            return (null!==$item) && !(is_array($item) && !count($item));
16 16
         });
17 17
 
18 18
         return $params;
Please login to merge, or discard this patch.
src/Route4Me/Route.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -294,13 +294,13 @@  discard block
 block discarded – undo
294 294
      * Route notes
295 295
      * @var AddressNote[]
296 296
      */
297
-    public $notes=[];
297
+    public $notes = [];
298 298
 
299 299
     /**
300 300
      * A vehicle assigned to the route.
301 301
      * @var Vehicles\VehicleResponseV4
302 302
      */
303
-    public $vehicle=[];
303
+    public $vehicle = [];
304 304
 
305 305
     /**
306 306
      * Member config key-value pairs.
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      */
414 414
     public static function getRoutes($params = null)
415 415
     {
416
-        $allQueryFields = ['route_id', 'original', 'route_path_output', 'query', 'directions', 'device_tracking_history', 'limit', 'offset','start_date','end_date'];
416
+        $allQueryFields = ['route_id', 'original', 'route_path_output', 'query', 'directions', 'device_tracking_history', 'limit', 'offset', 'start_date', 'end_date'];
417 417
 
418 418
         $result = Route4Me::makeRequst([
419 419
             'url'       => Endpoint::ROUTE_V4,
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      */
529 529
     public function mergeRoutes($params)
530 530
     {
531
-        $allBodyFields = ['route_ids', 'depot_address', 'remove_origin', 'depot_lat',  'depot_lng'];
531
+        $allBodyFields = ['route_ids', 'depot_address', 'remove_origin', 'depot_lat', 'depot_lng'];
532 532
 
533 533
         $result = Route4Me::makeRequst([
534 534
             'url'           => Endpoint::ROUTES_MERGE,
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
         $route = new self();
583 583
         $routes = $route->getRoutes($params);
584 584
 
585
-        if (is_null($routes) || sizeof($routes) < 1) {
585
+        if (is_null($routes) || sizeof($routes)<1) {
586 586
             echo '<br> There are no routes in the account. Please, create the routes first. <br>';
587 587
 
588 588
             return null;
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
      */
608 608
     public function updateRoute($params)
609 609
     {
610
-        $allQueryFields = ['route_id', 'reoptimize','route_destination_id'];
610
+        $allQueryFields = ['route_id', 'reoptimize', 'route_destination_id'];
611 611
         $allBodyFields = ['addresses', 'parameters', 'unlink_from_master_optimization'];
612 612
 
613 613
         $result = Route4Me::makeRequst([
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
 
642 642
     public function updateAddress($address = null)
643 643
     {
644
-        $body = sizeof($this->addresses) < 1 ? get_object_vars($this->parameters)
644
+        $body = sizeof($this->addresses)<1 ? get_object_vars($this->parameters)
645 645
             : (isset($this->addresses[0]) ? $this->addresses[0] : get_object_vars($this->parameters));
646 646
 
647 647
         $result = Route4Me::makeRequst([
Please login to merge, or discard this patch.
src/Route4Me/TelematicsGateway/TelematicsVendor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,11 +123,11 @@
 block discarded – undo
123 123
         $allVendors = self::GetTelematicsVendors(null);
124 124
         $vendorsNumber = sizeof($allVendors['vendors']);
125 125
 
126
-        if ($vendorsNumber < $limit) {
127
-            if ($vendorsNumber > $offset) {
126
+        if ($vendorsNumber<$limit) {
127
+            if ($vendorsNumber>$offset) {
128 128
                 $limit = $vendorsNumber;
129 129
             } else {
130
-                if ($vendorsNumber == $offset) {
130
+                if ($vendorsNumber==$offset) {
131 131
                     return $allVendors['vendors'][$offset]->{'vendor_id'};
132 132
                 } else {
133 133
                     echo 'The vendors numbers are less than offset';
Please login to merge, or discard this patch.
src/Route4Me/Vehicles/Vehicle.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $vehicles = $this->getVehicles($params);
112 112
 
113
-        if (is_null($vehicles) || !isset($vehicles['data']) || sizeof($vehicles['data']) < 1) {
113
+        if (is_null($vehicles) || !isset($vehicles['data']) || sizeof($vehicles['data'])<1) {
114 114
             return null;
115 115
         }
116 116
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public function getVehicleByID($vehicleID)
123 123
     {
124 124
         $response = Route4Me::makeRequst([
125
-            'url' => Endpoint::VEHICLE_V4 . '/' . $vehicleID,
125
+            'url' => Endpoint::VEHICLE_V4.'/'.$vehicleID,
126 126
             'method' => 'GET',
127 127
         ]);
128 128
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $allBodyFields = Route4Me::getObjectProperties(new self(), ['vehicle_id']);
137 137
 
138 138
         $response = Route4Me::makeRequst([
139
-            'url' => Endpoint::VEHICLE_V4 . '/' . $vehicleID,
139
+            'url' => Endpoint::VEHICLE_V4.'/'.$vehicleID,
140 140
             'method' => 'PUT',
141 141
             'body' => Route4Me::generateRequestParameters($allBodyFields, $params),
142 142
             'HTTPHEADER' => 'Content-Type: application/json',
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $vehicleID = isset($params->vehicle_id) ? $params->vehicle_id : null;
168 168
 
169 169
         $response = Route4Me::makeRequst([
170
-            'url' => Endpoint::VEHICLE_V4 . '/' . $vehicleID,
170
+            'url' => Endpoint::VEHICLE_V4.'/'.$vehicleID,
171 171
             'method' => 'DELETE',
172 172
             'HTTPHEADER' => 'Content-Type: application/json',
173 173
         ]);
Please login to merge, or discard this patch.
src/Route4Me/Tracking/UserLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class UserLocation extends \Route4Me\Common
11 11
 {
12 12
     /** @var MemberData[] $member_data */
13
-    public $member_data=[];
13
+    public $member_data = [];
14 14
 
15 15
     /** @var UserTracking[] $tracking */
16 16
     public $tracking = [];
Please login to merge, or discard this patch.
src/Route4Me/Tracking/Track.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         return $json;
26 26
     }
27 27
 
28
-    public static function getUserLocations($query=null)
28
+    public static function getUserLocations($query = null)
29 29
     {
30 30
         $json = Route4Me\Route4Me::makeRequst([
31 31
             'url' => Endpoint::USER_LOCATION,
Please login to merge, or discard this patch.