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.
Completed
Push — master ( 55318a...b54c2e )
by Oleg
02:27
created
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/UpdateRouteDestination.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;
@@ -30,7 +30,7 @@  discard block
 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
Spacing   +3 added lines, -3 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
 $count = 0; 
26 26
 
27
-while ($route_id1 == $route_id2) {
27
+while ($route_id1==$route_id2) {
28 28
     $route_id2 = $route->getRandomRouteId(0, 20);
29 29
     
30 30
     $count++;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 foreach ($addresses as $address) {
44 44
     if (isset($address->is_depot)) {
45
-        if ($address->is_depot == true) {
45
+        if ($address->is_depot==true) {
46 46
             $depot = $address;
47 47
             break;
48 48
         }
Please login to merge, or discard this patch.
examples/Routes/ShareRoute.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 a random route ID
19 19
 $route_id = $route->getRandomRouteId(0, 10);
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteParameters.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;
@@ -33,7 +33,7 @@  discard block
 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/GetTerritoryWithAddresses.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
-$territory=new Territory();
16
+$territory = new Territory();
17 17
 
18 18
 // Select a terriotry with the addresses from the list
19 19
 $params = array(
Please login to merge, or discard this patch.
examples/Territories/GetTerritories.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;
@@ -12,7 +12,7 @@  discard block
 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/multiple_depot_with_time_window.php 1 patch
Spacing   +3 added lines, -3 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;
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 $json = json_decode(file_get_contents('./addresses.json'), true);
26 26
 
27 27
 $addresses = array();
28
-foreach($json as $address) {
28
+foreach ($json as $address) {
29 29
     $addresses[] = Address::fromArray($address);
30 30
 }
31 31
 
32 32
 $parameters = RouteParameters::fromArray(array(
33 33
     "algorithm_type"          => Algorithmtype::CVRP_TW_SD,
34 34
     "route_name"              => "Multiple Depot, Multiple Driver, Time Window",
35
-    "route_date"              => time() + 24*60*60,
35
+    "route_date"              => time() + 24 * 60 * 60,
36 36
     "route_time"              => 60 * 60 * 7,
37 37
     "rt"                      => TRUE,
38 38
     "distance_unit"           => DistanceUnit::MILES,
Please login to merge, or discard this patch.
src/Route4Me/ActivityParameters.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
     {
34 34
         $activityparameters = new ActivityParameters();
35 35
         
36
-        foreach($params as $key => $value) {
36
+        foreach ($params as $key => $value) {
37 37
             if (property_exists($activityparameters, $key)) {
38 38
                 $activityparameters->{$key} = $value;
39 39
             }
Please login to merge, or discard this patch.