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 Setup Failed
Push — master ( 311795...859c79 )
by Igor
06:22 queued 13s
created
src/Route4Me/Order.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
         switch ($key) {
236 236
         case 'cached_lat':
237 237
         case 'curbside_lat':
238
-            if ($coord[$key] > 90 || $coord[$key] < -90) {
238
+            if ($coord[$key]>90 || $coord[$key]<-90) {
239 239
                 return false;
240 240
             }
241 241
             break;
242 242
         case 'cached_lng':
243 243
         case 'curbside_lng':
244
-            if ($coord[$key] > 180 || $coord[$key] < -180) {
244
+            if ($coord[$key]>180 || $coord[$key]<-180) {
245 245
                 return false;
246 246
             }
247 247
             break;
@@ -274,14 +274,14 @@  discard block
 block discarded – undo
274 274
 
275 275
         $iRow = 1;
276 276
 
277
-        while (false !== ($rows = fgetcsv($csvFileHandle, $max_line_length, $delemietr))) {
278
-            if ($rows[$ordersFieldsMapping['cached_lat']] && $rows[$ordersFieldsMapping['cached_lng']] && $rows[$ordersFieldsMapping['address_1']] && [null] !== $rows) {
277
+        while (false!==($rows = fgetcsv($csvFileHandle, $max_line_length, $delemietr))) {
278
+            if ($rows[$ordersFieldsMapping['cached_lat']] && $rows[$ordersFieldsMapping['cached_lng']] && $rows[$ordersFieldsMapping['address_1']] && [null]!==$rows) {
279 279
                 $cached_lat = 0.000;
280 280
                 $cached_lng = 0.000;
281 281
 
282 282
                 foreach (['cached_lat', 'cached_lng', 'curbside_lat', 'curbside_lng'] as $coord) {
283 283
                     if (!$this->validateCoordinate([$coord => $rows[$ordersFieldsMapping[$coord]]])) {
284
-                        array_push($results['fail'], "$iRow --> Wrong " + $coord);
284
+                        array_push($results['fail'], "$iRow --> Wrong " +$coord);
285 285
                         ++$iRow;
286 286
                         continue;
287 287
                     } else {
Please login to merge, or discard this patch.
src/Route4Me/TelematicsGateway/CreateConnectionResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,13 +95,13 @@
 block discarded – undo
95 95
      * Telemetics connection vendor
96 96
      * @var string
97 97
      */
98
-    public $vendor ;
98
+    public $vendor;
99 99
 
100 100
     /**
101 101
      * Telemetics connection type ID
102 102
      * @var integer
103 103
      */
104
-    public $vendor_id ;
104
+    public $vendor_id;
105 105
 
106 106
     public static function fromArray(array $params)
107 107
     {
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.
src/Route4Me/AddressBookLocationSearchResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 
7 7
 class AddressBookLocationSearchResponse
8 8
 {
9
-    public $results=[];
9
+    public $results = [];
10 10
     public $total;
11
-    public $fields=[];
11
+    public $fields = [];
12 12
 
13 13
     public static function fromArray(array $params)
14 14
     {
Please login to merge, or discard this patch.
src/Route4Me/Address.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
             ],
209 209
         ]);
210 210
 
211
-        return (bool) $address['deleted'];
211
+        return (bool)$address['deleted'];
212 212
     }
213 213
 
214 214
     public function moveDestinationToRoute($params)
Please login to merge, or discard this patch.
UnitTestFiles/Test/AdvancedConstraintsUnitTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $zones = [["ZONE 01"], ["ZONE 02"], ["ZONE 03"]];
47 47
 
48
-        for($i = 0; $i < 30; ++$i)
48
+        for ($i = 0; $i<30; ++$i)
49 49
         {
50 50
             $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
51 51
                 'tags' => [$zones[$i % 3]],
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public static function tearDownAfterClass()
75 75
     {
76
-        if(!is_null(self::$problem->optimization_problem_id))
76
+        if (!is_null(self::$problem->optimization_problem_id))
77 77
         {
78 78
             $params = [
79 79
                 'optimization_problem_ids' => ['0' => self::$problem->optimization_problem_id],
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
             $result = self::$problem->removeOptimization($params);
84 84
 
85
-            if ($result != null && $result['status'] == true) {
85
+            if ($result!=null && $result['status']==true) {
86 86
                 echo "The test optimization was removed <br>";
87 87
             } else {
88 88
                 echo "Cannot remove the test optimization <br>";
Please login to merge, or discard this patch.