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 ( a425f6...d42ccd )
by Oleg
01:59
created
examples/get_route_manifest.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;
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $route = new Route();
16 16
 
17 17
 // Get a random route ID
18
-$route_id=$route->getRandomRouteId(0, 10);
18
+$route_id = $route->getRandomRouteId(0, 10);
19 19
 assert(!is_null($route_id), "Can't retrieve a random route ID");
20 20
 
21 21
 // Get route manifest 
Please login to merge, or discard this patch.
examples/Notes/RemoveCustomNoteType.php 1 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;
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 $customNotes = $address->getAllCustomNoteTypes();
20 20
 
21 21
 assert(!is_null($customNotes), "Can't retrieve all custom note types");
22
-assert(sizeof($customNotes) > 0, "There is no custom note type in the user's account");
22
+assert(sizeof($customNotes)>0, "There is no custom note type in the user's account");
23 23
 
24
-$randomCustomNoteID = $customNotes[rand(0,sizeof($customNotes)-1)]['note_custom_type_id']; 
24
+$randomCustomNoteID = $customNotes[rand(0, sizeof($customNotes) - 1)]['note_custom_type_id']; 
25 25
 
26 26
 // Remove a custom note type
27 27
 $noteParameters = array(
Please login to merge, or discard this patch.
examples/SingleDriverMultipleTimeWindows.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,14 +24,14 @@  discard block
 block discarded – undo
24 24
 $json = json_decode(file_get_contents('./addresses.json'), true);
25 25
 
26 26
 $addresses = array();
27
-foreach($json as $address) {
27
+foreach ($json as $address) {
28 28
     $addresses[] = Address::fromArray($address);
29 29
 }
30 30
 
31 31
 $parameters = RouteParameters::fromArray(array(
32 32
     "algorithm_type"     => Algorithmtype::TSP,
33 33
     "route_name"         => "Single Driver Multiple TimeWindows 12 Stops",
34
-    "route_date"         => time() + 24*60*60,
34
+    "route_date"         => time() + 24 * 60 * 60,
35 35
     "route_time"         => 5 * 3600 + 30 * 60,
36 36
     "distance_unit"      => DistanceUnit::MILES,
37 37
     "device_type"        => DeviceType::WEB,
Please login to merge, or discard this patch.
examples/SingleDepotMultipleDriverNoTimeWindow.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"              => "Single Depot, Multiple Driver, No 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.
examples/single_driver_round_trip.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;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 $addresses = array();
28 28
 
29
-foreach($json as $address) {
29
+foreach ($json as $address) {
30 30
     $addresses[] = Address::fromArray($address);
31 31
 }
32 32
 
Please login to merge, or discard this patch.
examples/Members/create_device_record.php 1 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\Member;
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 // Set the API key in the Route4Me class
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15
-$recordParameters=Member::fromArray(array(
15
+$recordParameters = Member::fromArray(array(
16 16
     'device_id'   => '546546516',
17 17
     'device_type' => 'IPAD',
18 18
     'format'      => 'json',
Please login to merge, or discard this patch.
examples/Members/purchase_user_license.php 1 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\Member;
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 // Set the API key in the Route4Me class
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15
-$recordParameters=Member::fromArray(array(
15
+$recordParameters = Member::fromArray(array(
16 16
     'member_id'         => 777777,
17 17
     'session_guid'      => '454563',
18 18
     'device_id'         => '54564',
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/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.