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 ( b54c2e...66b33a )
by Oleg
01:58
created
examples/AddressBook/RemoveAddressBookLocations.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16 16
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
17
-    "first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
18
-    "address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
19
-    "cached_lat"  => 38.024654,
20
-    "cached_lng"  => -77.338814
17
+	"first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
18
+	"address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
19
+	"cached_lat"  => 38.024654,
20
+	"cached_lng"  => -77.338814
21 21
 ));
22 22
 
23 23
 $abContacts = new AddressBookLocation();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 $address_id = -1;
28 28
 
29 29
 if (isset($createdContact['address_id'])) {
30
-    $address_id = $createdContact["address_id"];
30
+	$address_id = $createdContact["address_id"];
31 31
 }
32 32
 
33 33
 assert($address_id!=-1, "Creating of Address Book Location was failed. Try again!.. <br>");
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteDestination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 // Update the route destination
31 31
 $route->parameters = new \stdClass();
32 32
 
33
-$route->addresses = array( Address::fromArray(array(
33
+$route->addresses = array(Address::fromArray(array(
34 34
     "alias"                   =>  "new address alias",
35 35
     "first_name"              =>  "Edi",
36 36
     "last_name"               =>  "Jacobson",
Please login to merge, or discard this patch.
examples/Routes/MergeRoutes.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 $count = 0; 
26 26
 
27 27
 while ($route_id1==$route_id2) {
28
-    $route_id2 = $route->getRandomRouteId(0, 20);
28
+	$route_id2 = $route->getRandomRouteId(0, 20);
29 29
     
30
-    $count++;
30
+	$count++;
31 31
     
32
-    if ($count>5) break; // prevent from the infinite cycle, if there are less than 2 routes.
32
+	if ($count>5) break; // prevent from the infinite cycle, if there are less than 2 routes.
33 33
 }
34 34
 
35 35
 echo "Route ID 1 -> $route_id1 <br> Route ID 2 -> $route_id2 <br>";
@@ -41,21 +41,21 @@  discard block
 block discarded – undo
41 41
 $depot = null;
42 42
 
43 43
 foreach ($addresses as $address) {
44
-    if (isset($address->is_depot)) {
45
-        if ($address->is_depot==true) {
46
-            $depot = $address;
47
-            break;
48
-        }
49
-    }
44
+	if (isset($address->is_depot)) {
45
+		if ($address->is_depot==true) {
46
+			$depot = $address;
47
+			break;
48
+		}
49
+	}
50 50
 }
51 51
 
52 52
 // Merge the selected routes
53 53
 $params = array(
54
-    "route_ids"      => $route_id1.",".$route_id2,
55
-    "depot_address"  =>  $depot->address,
56
-    "remove_origin"  =>  false,
57
-    "depot_lat"      =>  $depot->lat,
58
-    "depot_lat"      =>  $depot->lng
54
+	"route_ids"      => $route_id1.",".$route_id2,
55
+	"depot_address"  =>  $depot->address,
56
+	"remove_origin"  =>  false,
57
+	"depot_lat"      =>  $depot->lat,
58
+	"depot_lat"      =>  $depot->lng
59 59
 );
60 60
 
61 61
 $result = $route->mergeRoutes($params);
Please login to merge, or discard this patch.
examples/Routes/SearchRoute.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 // The example refers to the process of searching for the specified text throughout all routes, belonging to the user's account.
14 14
 
15 15
 $RouteParameters = array(
16
-    "query"   => 'Automated'
16
+	"query"   => 'Automated'
17 17
 );
18 18
 
19 19
 $route = new Route();
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 foreach ($routeResults as $routeResult)
24 24
 {
25
-    $results = (array)$routeResult;
25
+	$results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+	if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
28 28
     
29
-    if (isset($results['parameters']->route_name)) echo "Route name - > ".$results['parameters']->route_name."<br>";
29
+	if (isset($results['parameters']->route_name)) echo "Route name - > ".$results['parameters']->route_name."<br>";
30 30
 
31
-    echo "<br>";
31
+	echo "<br>";
32 32
 }
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;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 {
25 25
     $results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+    if (isset($results['route_id'])) echo "Route ID - > ".$results['route_id']."<br>";
28 28
     
29 29
     if (isset($results['parameters']->route_name)) echo "Route name - > ".$results['parameters']->route_name."<br>";
30 30
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,13 @@
 block discarded – undo
24 24
 {
25 25
     $results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+    if (isset($results['route_id'])) {
28
+    	echo "Route ID - > " . $results['route_id'] . "<br>";
29
+    }
28 30
     
29
-    if (isset($results['parameters']->route_name)) echo "Route name - > ".$results['parameters']->route_name."<br>";
31
+    if (isset($results['parameters']->route_name)) {
32
+    	echo "Route name - > ".$results['parameters']->route_name."<br>";
33
+    }
30 34
 
31 35
     echo "<br>";
32 36
 }
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     "member_id"           => $randomRoute->member_id,
34 34
     "optimize"            => "Distance",
35 35
     "route_max_duration"  => "82400",
36
-    "route_name"          => "updated " . date('m-d-Y')
36
+    "route_name"          => "updated ".date('m-d-Y')
37 37
 );
38 38
 
39 39
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
examples/Territories/DeleteTerritory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 
19 19
 $territoryParams['type'] = TerritoryTypes::CIRCLE;
20 20
 $territoryParams['data'] = array(
21
-    "37.569752822786455,-77.47833251953125",
22
-    "5000"
21
+	"37.569752822786455,-77.47833251953125",
22
+	"5000"
23 23
 );
24 24
 
25 25
 $TerritoryParameters = Territory::fromArray(array(
26
-    "territory_name"   => "Test Territory ".strval(rand(10000, 99999)),
27
-    "territory_color"  => "ff7700",
28
-    "territory"        => $territoryParams
26
+	"territory_name"   => "Test Territory ".strval(rand(10000, 99999)),
27
+	"territory_color"  => "ff7700",
28
+	"territory"        => $territoryParams
29 29
 ));
30 30
 
31 31
 $territory = new Territory();
Please login to merge, or discard this patch.
examples/Territories/GetTerritories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 $territory = new Territory();
14 14
 
15
-$queryparameters = array (
15
+$queryparameters = array(
16 16
     "offset" => 0,
17 17
     "limit"  => 20
18 18
 );
Please login to merge, or discard this patch.
examples/Territories/CreateRectangularTerritory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
 
17 17
 $territoryParams['type'] = TerritoryTypes::RECT;
18 18
 $territoryParams['data'] = array(
19
-    "43.51668853502909,-109.3798828125",
20
-    "46.98025235521883,-101.865234375"
19
+	"43.51668853502909,-109.3798828125",
20
+	"46.98025235521883,-101.865234375"
21 21
 );
22 22
 
23 23
 $TerritoryParameters = Territory::fromArray(array(
24
-    "territory_name"   => "Test Rectangular Territory ".strval(rand(10000, 99999)),
25
-    "territory_color"  => "ff7700",
26
-    "territory"        => $territoryParams
24
+	"territory_name"   => "Test Rectangular Territory ".strval(rand(10000, 99999)),
25
+	"territory_color"  => "ff7700",
26
+	"territory"        => $territoryParams
27 27
 ));
28 28
 
29 29
 $territory = new Territory();
Please login to merge, or discard this patch.
examples/Territories/UpdateTerritory.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
 
19 19
 $territoryParams['type'] = TerritoryTypes::CIRCLE;
20 20
 $territoryParams['data'] = array(
21
-    "37.569752822786455,-77.47833251953125",
22
-    "5000"
21
+	"37.569752822786455,-77.47833251953125",
22
+	"5000"
23 23
 );
24 24
 
25 25
 $TerritoryParameters = Territory::fromArray(array(
26
-    "territory_name"  => "Test Territory ".strval(rand(10000, 99999)),
27
-    "territory_color" => "ff7700",
28
-    "territory"       => $territoryParams
26
+	"territory_name"  => "Test Territory ".strval(rand(10000, 99999)),
27
+	"territory_color" => "ff7700",
28
+	"territory"       => $territoryParams
29 29
 ));
30 30
 
31 31
 $result = (array)$territory->addTerritory($TerritoryParameters);
@@ -38,18 +38,18 @@  discard block
 block discarded – undo
38 38
 
39 39
 // Update territory
40 40
 $territoryParameters = array (
41
-    "type" => TerritoryTypes::RECT,
42
-    "data" => array(
43
-        "29.6600127358956,-95.6593322753906",
44
-        "29.8966150753098,-95.3146362304688"
45
-       )
41
+	"type" => TerritoryTypes::RECT,
42
+	"data" => array(
43
+		"29.6600127358956,-95.6593322753906",
44
+		"29.8966150753098,-95.3146362304688"
45
+	   )
46 46
    );
47 47
 
48 48
 $TerritoryParameters = Territory::fromArray(array(
49
-    "territory_id"     => $territory_id,
50
-    "territory_name"   => "Test Territory Updated as rectangle",
51
-    "territory_color"  => "ff5500",
52
-    "territory"        => $territoryParameters
49
+	"territory_id"     => $territory_id,
50
+	"territory_name"   => "Test Territory Updated as rectangle",
51
+	"territory_color"  => "ff5500",
52
+	"territory"        => $territoryParameters
53 53
 ));
54 54
 
55 55
 $result1 = $territory->updateTerritory($TerritoryParameters);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 echo "---------------------------------------------------------------<br><br>";
38 38
 
39 39
 // Update territory
40
-$territoryParameters = array (
40
+$territoryParameters = array(
41 41
     "type" => TerritoryTypes::RECT,
42 42
     "data" => array(
43 43
         "29.6600127358956,-95.6593322753906",
Please login to merge, or discard this patch.