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.
Passed
Push — master ( ba89cf...799599 )
by Oleg
02:27
created
examples/AddressBook/AddAddressBookLocation.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 
13 13
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
14
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
-    "cached_lat"  => 38.024654,
17
-    "cached_lng"  => -77.338814
14
+	"first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
+	"address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
+	"cached_lat"  => 38.024654,
17
+	"cached_lng"  => -77.338814
18 18
 ));
19 19
 
20 20
 $abContacts = new AddressBookLocation();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 
13 13
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
14
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
14
+    "first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
15
+    "address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
16 16
     "cached_lat"  => 38.024654,
17 17
     "cached_lng"  => -77.338814
18 18
 ));
Please login to merge, or discard this patch.
examples/AddressBook/UpdateAddressBookLocation.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
16
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
-    "cached_lat"  => 38.024654,
19
-    "cached_lng"  => -77.338814
16
+	"first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
+	"address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
+	"cached_lat"  => 38.024654,
19
+	"cached_lng"  => -77.338814
20 20
 ));
21 21
 
22 22
 $abLocation = new AddressBookLocation();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 assert(isset($abcResult['address_id']), "Cannot create an address book location. <br><br>");
29 29
 
30 30
 if (isset($abcResult["address_id"])) {
31
-    $address_id = $abcResult["address_id"];
31
+	$address_id = $abcResult["address_id"];
32 32
 }
33 33
 
34 34
 assert($address_id != -1, "Cannot create an address book location. <br><br>");
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
16
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
+    "first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
17
+    "address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
18 18
     "cached_lat"  => 38.024654,
19 19
     "cached_lng"  => -77.338814
20 20
 ));
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     $address_id = $abcResult["address_id"];
32 32
 }
33 33
 
34
-assert($address_id != -1, "Cannot create an address book location. <br><br>");
34
+assert($address_id!=-1, "Cannot create an address book location. <br><br>");
35 35
 
36
-echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = " . $abcResult['first_name'] . "</b> was successfully added<br>";
36
+echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = ".$abcResult['first_name']."</b> was successfully added<br>";
37 37
  
38 38
 $abcResult["first_name"] = "Test Firstname Updated";
39 39
 
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
 
42 42
 assert(isset($abcResult['first_name']), "Cannot update the address book location. <br><br>");
43 43
 
44
-assert($abcResult['first_name'] == 'Test Firstname Updated', "Cannot update the address book location. <br><br>");
44
+assert($abcResult['first_name']=='Test Firstname Updated', "Cannot update the address book location. <br><br>");
45 45
 
46
-echo "The field <b>first_name</b> in the address book location <b>" . $address_id . "</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; 
46
+echo "The field <b>first_name</b> in the address book location <b>".$address_id."</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; 
Please login to merge, or discard this patch.
examples/AddressBook/AddressBookLocationSearch.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 $ablocation = new AddressBookLocation();
15 15
 
16 16
 $params = array(
17
-    "query"  => "David",
18
-    "fields" => "first_name,last_name,address_email, address_alias, address_1",
19
-    "offset" => 0,
20
-    "limit"  => 20,
17
+	"query"  => "David",
18
+	"fields" => "first_name,last_name,address_email, address_alias, address_1",
19
+	"offset" => 0,
20
+	"limit"  => 20,
21 21
 );
22 22
 
23 23
 $abcResult = $ablocation->searchRoutedLocation($params);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -22,6 +22,6 @@  discard block
 block discarded – undo
22 22
 
23 23
 $abcResult = $ablocation->searchRoutedLocation($params);
24 24
 
25
-$results = $ablocation->getValue($abcResult,"results");
25
+$results = $ablocation->getValue($abcResult, "results");
26 26
 
27 27
 Route4Me::simplePrint($results);
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocation.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -25,6 +25,6 @@  discard block
 block discarded – undo
25 25
 $addressID = $randomLocation["address_id"];
26 26
 $abcResult = $abLocation->getAddressBookLocation($addressID);
27 27
 
28
-$results = $abLocation->getValue($abcResult,"results");
28
+$results = $abLocation->getValue($abcResult, "results");
29 29
 
30 30
 Route4Me::simplePrint($results);
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 // Get reandom address book location
15 15
 $AdressBookLocationParameters = array(
16
-        "limit"     => 30,
17
-        "offset"    => 0
18
-    );
16
+		"limit"     => 30,
17
+		"offset"    => 0
18
+	);
19 19
 
20 20
 $randomLocation = $abLocation->getRandomAddressBookLocation($AdressBookLocationParameters);
21 21
 
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocations.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 // Example refers to getting the address book locations
14 14
 
15 15
 $AdressBookLocationParameters = array(
16
-    "limit"   => 30,
17
-    "offset"  => 0
16
+	"limit"   => 30,
17
+	"offset"  => 0
18 18
 );
19 19
 
20 20
 $abContacts = new AddressBookLocation();
@@ -25,5 +25,5 @@  discard block
 block discarded – undo
25 25
 
26 26
 foreach ($results as $result) {
27 27
 	Route4Me::simplePrint($result);
28
-    echo "<br>";
28
+	echo "<br>";
29 29
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 $abcResults = $abContacts->getAddressBookLocations($AdressBookLocationParameters);
23 23
 
24
-$results = $abContacts->getValue($abcResults,"results");
24
+$results = $abContacts->getValue($abcResults, "results");
25 25
 
26 26
 foreach ($results as $result) {
27 27
 	Route4Me::simplePrint($result);
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocationsByIDs.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 $ids = "";
15 15
 
16 16
 $adressBookLocationParameters = array(
17
-    "limit"   => 30,
18
-    "offset"  => 0
17
+	"limit"   => 30,
18
+	"offset"  => 0
19 19
 ); 
20 20
 
21 21
 $abContacts = new AddressBookLocation();
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
 $results = $ablocation->getValue($abcResult,"results");
38 38
 
39 39
 foreach ($results as $result) {
40
-    Route4Me::simplePrint($result);
41
-    echo "<br>";
40
+	Route4Me::simplePrint($result);
41
+	echo "<br>";
42 42
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 $abcResults = $abContacts->getAddressBookLocations($adressBookLocationParameters);
24 24
 
25
-$results = $abContacts->getValue($abcResults,"results");
25
+$results = $abContacts->getValue($abcResults, "results");
26 26
 
27 27
 $contactsNumber = sizeof($results);
28
-$id1 = $results[rand(1, $contactsNumber)-1]['address_id'];
29
-$id2 = $results[rand(1, $contactsNumber)-1]['address_id'];
28
+$id1 = $results[rand(1, $contactsNumber) - 1]['address_id'];
29
+$id2 = $results[rand(1, $contactsNumber) - 1]['address_id'];
30 30
 $ids = $id1.",".$id2;
31 31
 
32 32
 // Retrieve address book locations by address_ids
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 $abcResult = $ablocation->getAddressBookLocationsByIDs($ids);
36 36
 
37
-$results = $ablocation->getValue($abcResult,"results");
37
+$results = $ablocation->getValue($abcResult, "results");
38 38
 
39 39
 foreach ($results as $result) {
40 40
     Route4Me::simplePrint($result);
Please login to merge, or discard this patch.
examples/Routes/DuplicateRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 // Set the api key in the Route4Me class
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16
-$route=new Route();
16
+$route = new Route();
17 17
 
18 18
 // Get random route ID
19 19
 $randomRouteID = $route->getRandomRouteId(0, 25);
Please login to merge, or discard this patch.
examples/Routes/GetRouteDirections.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
 // Get a route with the directions
25 25
 $params = array(
26
-    "directions" => 1
26
+	"directions" => 1
27 27
 );
28 28
 
29 29
 $routeResults = (array)$route->getRoutePoints($route_id,$params);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -26,6 +26,6 @@  discard block
 block discarded – undo
26 26
     "directions" => 1
27 27
 );
28 28
 
29
-$routeResults = (array)$route->getRoutePoints($route_id,$params);
29
+$routeResults = (array)$route->getRoutePoints($route_id, $params);
30 30
 
31 31
 Route4Me::simplePrint($routeResults, true);
Please login to merge, or discard this patch.
examples/Routes/UpdateDestinationCustomData.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
 $route->parameters = new \stdClass();
32 32
 
33 33
 $route->parameters->custom_fields = array(
34
-        "animal"  => "tiger",
35
-        "bird"    => "canary"
34
+		"animal"  => "tiger",
35
+		"bird"    => "canary"
36 36
 );
37 37
 
38 38
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
Please login to merge, or discard this patch.