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/MemberConfiguration/delete_config_key.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\Member;
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $member = new Member();
16 16
 
17 17
 // Create a config key
18
-$createParams = Member::fromArray(array (
18
+$createParams = Member::fromArray(array(
19 19
     "config_key"=> "My height",
20 20
     "config_value"=> "182"
21 21
 ));
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 $response = $member->newMemberConfigKey($createParams);
24 24
 
25 25
 // Delete a config key
26
-$removeParams = Member::fromArray(array (
26
+$removeParams = Member::fromArray(array(
27 27
     "config_key"=> "My height"
28 28
 ));
29 29
 
Please login to merge, or discard this patch.
examples/MemberConfiguration/create_new_config_key.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
-$params = Member::fromArray(array (
15
+$params = Member::fromArray(array(
16 16
     "config_key"  => "destination_icon_uri",
17 17
     "config_value"=> "value"
18 18
 ));
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_account_config_key_data.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
-$params = Member::fromArray(array (
15
+$params = Member::fromArray(array(
16 16
 ));
17 17
 
18 18
 $member = new Member();
Please login to merge, or discard this patch.
examples/MemberConfiguration/update_config_key.php 1 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\Member;
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 $member = new Member();
19 19
 
20 20
 // Get a random member config key
21
-$randomParams = Member::fromArray(array (
21
+$randomParams = Member::fromArray(array(
22 22
 ));
23 23
 
24 24
 $response = $member->getMemberConfigData($randomParams);
@@ -27,16 +27,16 @@  discard block
 block discarded – undo
27 27
 assert(sizeof($response)==2, "Cannot retrieve all config data");
28 28
 assert(isset($response['data']), "Cannot retrieve all config data");
29 29
 
30
-$randIndex = rand(0, sizeof($response['data'])-1);
30
+$randIndex = rand(0, sizeof($response['data']) - 1);
31 31
 
32 32
 $randomKey = $response['data'][$randIndex]['config_key'];
33 33
 $randomValue = $response['data'][$randIndex]['config_value'];
34 34
 echo "Random key -> $randomKey,  random value -> $randomValue <br><br>";
35 35
 
36 36
 // Update existing configuration key data
37
-$params = Member::fromArray(array (
37
+$params = Member::fromArray(array(
38 38
     "config_key"=> $randomKey,
39
-    "config_value"=> $randomValue . " Updated"
39
+    "config_value"=> $randomValue." Updated"
40 40
 ));
41 41
 
42 42
 $response = $member->updateMemberConfigKey($params);
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_specific_account_config_key_data.php 1 patch
Spacing   +5 added lines, -5 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;
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 $member = new Member();
19 19
 
20 20
 // Get a random member config key
21
-$randomParams = Member::fromArray(array (
21
+$randomParams = Member::fromArray(array(
22 22
 ));
23 23
 
24 24
 $response = $member->getMemberConfigData($randomParams);
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 assert(sizeof($response)==2, "Cannot retrieve all config data");
28 28
 assert(isset($response['data']), "Cannot retrieve all config data");
29 29
 
30
-$randomKey = $response['data'][rand(0, sizeof($response['data'])-1)]['config_key'];
30
+$randomKey = $response['data'][rand(0, sizeof($response['data']) - 1)]['config_key'];
31 31
 
32 32
 // Get a specified single configuration key data
33 33
 echo "randomKey -> $randomKey <br><br>";
34 34
 
35
-$params = Member::fromArray(array (
35
+$params = Member::fromArray(array(
36 36
     "config_key"=> $randomKey
37 37
 ));
38 38
 
Please login to merge, or discard this patch.
examples/AddressBook/AddScheduledAddressBookLocation.php 1 patch
Spacing   +5 added lines, -5 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;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         "mode"    => "weekly",
62 62
         "weekly"  => array(
63 63
             "every"    => 1,
64
-            "weekdays" => array(1,2,3,4,5)
64
+            "weekdays" => array(1, 2, 3, 4, 5)
65 65
         )
66 66
     )),
67 67
     "service_time" => 600
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         "monthly" => array(
102 102
             "every" => 1,
103 103
             "mode"  => "dates",
104
-            "dates" => array(20,22,23,24,25)
104
+            "dates" => array(20, 22, 23, 24, 25)
105 105
         )
106 106
     )),
107 107
     "service_time" => 750,
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         "mode"    => "daily",
187 187
         "daily"   => array("every" => 1)
188 188
     ),
189
-    "schedule_blacklist" => array("2017-02-24","2017-02-25"),
189
+    "schedule_blacklist" => array("2017-02-24", "2017-02-25"),
190 190
     "service_time"       => 300
191 191
 ));
192 192
 
Please login to merge, or discard this patch.
examples/AddressBook/SearchRoutedLocations.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
 
@@ -26,4 +26,4 @@  discard block
 block discarded – undo
26 26
 
27 27
 assert(isset($abcResult['results']) && isset($abcResult['total']), "Cannot done search for the locations");
28 28
 
29
-echo "Was found " . $abcResult['total'] . " routed locations";
29
+echo "Was found ".$abcResult['total']." routed locations";
Please login to merge, or discard this patch.
examples/AddressBook/AddAddressBookLocation.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;
@@ -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 1 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.