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 ( 6c805f...bce16d )
by Igor
09:12 queued 14s
created
examples/get_route_tracking.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 assert(!is_null($route_id), "Cannot retrieve a random route ID");
18 18
 
19 19
 $params = [
20
-    'device_tracking_history'   => true,
21
-    'route_id'                  => $route_id,
20
+	'device_tracking_history'   => true,
21
+	'route_id'                  => $route_id,
22 22
 ];
23 23
 
24 24
 // Get route tracking
Please login to merge, or discard this patch.
examples/Notes/RemoveCustomNoteType.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 // Remove a custom note type
25 25
 $noteParameters = [
26
-    'id' => $randomCustomNoteID,
26
+	'id' => $randomCustomNoteID,
27 27
 ];
28 28
 
29 29
 $addressNote = new AddressNote();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 $customNotes = $addressNote->getAllCustomNoteTypes();
18 18
 
19 19
 assert(!is_null($customNotes), "Cannot retrieve all custom note types");
20
-assert(sizeof($customNotes) > 0, "There is no custom note type in the user's account");
20
+assert(sizeof($customNotes)>0, "There is no custom note type in the user's account");
21 21
 
22 22
 $randomCustomNoteID = $customNotes[rand(0, sizeof($customNotes) - 1)]['note_custom_type_id'];
23 23
 
Please login to merge, or discard this patch.
examples/Notes/GetAddressNotes.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 
27 27
 // Add an address note
28 28
 $noteParameters = [
29
-    'route_id'          => $route_id,
30
-    'address_id'        => $route_destination_id,
31
-    'dev_lat'           => $addressRand['lat'],
32
-    'dev_lng'           => $addressRand['lng'],
33
-    'device_type'       => 'web',
34
-    'strUpdateType'     => 'dropoff',
35
-    'strNoteContents'   => 'Test '.time(),
29
+	'route_id'          => $route_id,
30
+	'address_id'        => $route_destination_id,
31
+	'dev_lat'           => $addressRand['lat'],
32
+	'dev_lng'           => $addressRand['lng'],
33
+	'device_type'       => 'web',
34
+	'strUpdateType'     => 'dropoff',
35
+	'strNoteContents'   => 'Test '.time(),
36 36
 ];
37 37
 
38 38
 $addressNote = new AddressNote();
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 
44 44
 // Get address notes
45 45
 $noteParameters = [
46
-    'route_id'              => $route_id,
47
-    'route_destination_id'  => $route_destination_id,
46
+	'route_id'              => $route_id,
47
+	'route_destination_id'  => $route_destination_id,
48 48
 ];
49 49
 
50 50
 $addressNote = new AddressNote();
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
 echo 'Destination note count --> '.$notes['destination_note_count'].'<br>';
55 55
 
56 56
 foreach ($notes['notes'] as $note) {
57
-    echo '========== Notes ==================<br>';
58
-    echo 'note_id --> '.$note['note_id'].'<br>';
59
-    $content = isset($note['contents']) ? $note['contents'] : '';
60
-    if (strlen($content) > 0) {
61
-        echo "contents --> $content".'<br>';
62
-    }
57
+	echo '========== Notes ==================<br>';
58
+	echo 'note_id --> '.$note['note_id'].'<br>';
59
+	$content = isset($note['contents']) ? $note['contents'] : '';
60
+	if (strlen($content) > 0) {
61
+		echo "contents --> $content".'<br>';
62
+	}
63 63
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 assert(!is_null($route_id), "Cannot retrieve random route_id");
20 20
 
21 21
 // Get random address's id from selected route above
22
-$addressRand = (array) $route->GetRandomAddressFromRoute($route_id);
22
+$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
23 23
 $route_destination_id = $addressRand['route_destination_id'];
24 24
 
25 25
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     echo '========== Notes ==================<br>';
58 58
     echo 'note_id --> '.$note['note_id'].'<br>';
59 59
     $content = isset($note['contents']) ? $note['contents'] : '';
60
-    if (strlen($content) > 0) {
60
+    if (strlen($content)>0) {
61 61
         echo "contents --> $content".'<br>';
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
examples/Notes/AddCustomNoteToRoute.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
 
26 26
 // Add a custom note to a route
27 27
 $noteParameters = [
28
-    'route_id'              => $routeId,
29
-    'address_id'            => $route_destination_id,
30
-    'format'                => 'json',
31
-    'dev_lat'               => $addressRand['lat'],
32
-    'dev_lng'               => $addressRand['lng'],
33
-    'custom_note_type[11]'  => 'slippery',
34
-    'custom_note_type[10]'  => 'Backdoor',
35
-    'strUpdateType'         => 'dropoff',
36
-    'strNoteContents'       => 'test1111',
28
+	'route_id'              => $routeId,
29
+	'address_id'            => $route_destination_id,
30
+	'format'                => 'json',
31
+	'dev_lat'               => $addressRand['lat'],
32
+	'dev_lng'               => $addressRand['lng'],
33
+	'custom_note_type[11]'  => 'slippery',
34
+	'custom_note_type[10]'  => 'Backdoor',
35
+	'strUpdateType'         => 'dropoff',
36
+	'strNoteContents'       => 'test1111',
37 37
 ];
38 38
 
39 39
 $addressNote = new AddressNote();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 assert(!is_null($routeId), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from the above selected route
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
22 22
 $route_destination_id = $addressRand['route_destination_id'];
23 23
 
24 24
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
Please login to merge, or discard this patch.
examples/Notes/FIleNoteUploading.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 
26 26
 // Add a file note
27 27
 $noteParameters = [
28
-    'strFilename'   => 'notes.csv',
29
-    'route_id'      => $route_id,
30
-    'address_id'    => $route_destination_id,
31
-    'dev_lat'       => $addressRand['lat'],
32
-    'dev_lng'       => $addressRand['lng'],
33
-    'device_type'   => 'web',
34
-    'strUpdateType' => 'ANY_FILE',
28
+	'strFilename'   => 'notes.csv',
29
+	'route_id'      => $route_id,
30
+	'address_id'    => $route_destination_id,
31
+	'dev_lat'       => $addressRand['lat'],
32
+	'dev_lng'       => $addressRand['lng'],
33
+	'device_type'   => 'web',
34
+	'strUpdateType' => 'ANY_FILE',
35 35
 ];
36 36
 
37 37
 $addressNote = new AddressNote();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 assert(!is_null($route_id), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($route_id);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
22 22
 $route_destination_id = $addressRand['route_destination_id'];
23 23
 
24 24
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
Please login to merge, or discard this patch.
examples/Notes/AddCustomNoteType.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@
 block discarded – undo
10 10
 
11 11
 // Create a custom note type
12 12
 $noteParameters = [
13
-    'type'   => 'To Do',
14
-    'values' => [
15
-                  'Pass a package',
16
-                  'Pickup package',
17
-                  'Do a service',
18
-                ],
13
+	'type'   => 'To Do',
14
+	'values' => [
15
+				  'Pass a package',
16
+				  'Pickup package',
17
+				  'Do a service',
18
+				],
19 19
 ];
20 20
 
21 21
 $addressNote = new AddressNote();
Please login to merge, or discard this patch.
examples/Notes/AddAddressNote.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 
26 26
 // Add an address note
27 27
 $noteParameters = [
28
-    'route_id'          => $route_id,
29
-    'address_id'        => $route_destination_id,
30
-    'dev_lat'           => $addressRand['lat'],
31
-    'dev_lng'           => $addressRand['lng'],
32
-    'device_type'       => 'web',
33
-    'strUpdateType'     => 'dropoff',
34
-    'strNoteContents'   => 'Test',
28
+	'route_id'          => $route_id,
29
+	'address_id'        => $route_destination_id,
30
+	'dev_lat'           => $addressRand['lat'],
31
+	'dev_lng'           => $addressRand['lng'],
32
+	'device_type'       => 'web',
33
+	'strUpdateType'     => 'dropoff',
34
+	'strNoteContents'   => 'Test',
35 35
 ];
36 36
 
37 37
 $addressNote = new AddressNote();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 assert(!is_null($route_id), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($route_id);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
22 22
 $route_destination_id = $addressRand['route_destination_id'];
23 23
 
24 24
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
@@ -41,4 +41,4 @@  discard block
 block discarded – undo
41 41
 
42 42
 $address1 = $addressNote->AddAddressNote($noteParameters);
43 43
 
44
-Route4Me::simplePrint((array) $address1, true);
44
+Route4Me::simplePrint((array)$address1, true);
Please login to merge, or discard this patch.
examples/GetAddressBookLocationsByIDs.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 // Get two random locations IDs
12 12
 
13 13
 $addressBookLocationParameters = [
14
-    'limit'     => 30,
15
-    'offset'    => 0,
14
+	'limit'     => 30,
15
+	'offset'    => 0,
16 16
 ];
17 17
 
18 18
 $abContacts = new AddressBookLocation();
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
 $results = $abLocation->getValue($abcResult, 'results');
37 37
 
38 38
 foreach ($results as $result) {
39
-    Route4Me::simplePrint($result);
40
-    echo '<br>';
39
+	Route4Me::simplePrint($result);
40
+	echo '<br>';
41 41
 }
Please login to merge, or discard this patch.
examples/AddressBookLocationSearch.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 $abLocation = new AddressBookLocation();
14 14
 
15 15
 $params = [
16
-    'query'     => 'Test',
17
-    'fields'    => 'address_1,address_group,first_name,last_name',
18
-    'offset'    => 0,
19
-    'limit'     => 20,
16
+	'query'     => 'Test',
17
+	'fields'    => 'address_1,address_group,first_name,last_name',
18
+	'offset'    => 0,
19
+	'limit'     => 20,
20 20
 ];
21 21
 
22 22
 $abcResult = $abLocation->searchAddressBookLocations($params);
Please login to merge, or discard this patch.