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.
Test Failed
Push — master ( 6c805f...bce16d )
by Igor
09:12 queued 14s
created
examples/UpdateAddressBookLocation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     $address_id = $abcResult['address_id'];
31 31
 }
32 32
 
33
-assert($address_id != -1, 'Cannot create an address book location. <br><br>');
33
+assert($address_id!=-1, 'Cannot create an address book location. <br><br>');
34 34
 
35 35
 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 36
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
 
41 41
 assert(isset($abcResult['first_name']), 'Cannot update the address book location. <br><br>');
42 42
 
43
-assert('Test First Name Updated' == $abcResult['first_name'], 'Cannot update the address book location. <br><br>');
43
+assert('Test First Name Updated'==$abcResult['first_name'], 'Cannot update the address book location. <br><br>');
44 44
 
45 45
 echo 'The field <b>first_name</b> in the address book location <b>'.$address_id.'</b> was update to <b>Test First Name Updated</b> successfuly <br>';
Please login to merge, or discard this patch.
examples/AvoidanceZones/GetAvoidanceZone.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
 
31 31
 $avoidanceZone = new AvoidanceZone();
32 32
 
33
-$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters);
33
+$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters);
34 34
 
35 35
 assert(isset($result), 'Failed to create new Avoidance Zone');
36 36
 
Please login to merge, or discard this patch.
examples/Territories/DeleteTerritory.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
 
31 31
 $territory = new Territory();
32 32
 
33
-$result = (array) $territory->addTerritory($TerritoryParameters);
33
+$result = (array)$territory->addTerritory($TerritoryParameters);
34 34
 
35 35
 assert(!is_null($result), "Cannot create a territory");
36 36
 assert(isset($result['territory_id']), "Cannot create a territory");
Please login to merge, or discard this patch.
examples/Territories/UpdateTerritory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     'territory'         => $territoryParams,
29 29
 ]);
30 30
 
31
-$result = (array) $territory->addTerritory($TerritoryParameters);
31
+$result = (array)$territory->addTerritory($TerritoryParameters);
32 32
 assert(!is_null($result), "Cannot create a territory");
33 33
 
34 34
 $territory_id = $result['territory_id'];
Please login to merge, or discard this patch.
examples/Territories/GetTerritoryWithAddresses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 foreach ($results as $terr) {
30 30
     if (isset($terr['addresses'])) {
31
-        if (sizeof($terr['addresses']) > 0) {
31
+        if (sizeof($terr['addresses'])>0) {
32 32
             $territory1 = $terr;
33 33
             break;
34 34
         }
Please login to merge, or discard this patch.
examples/MemberConfiguration/update_config_key.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 $response = $member->getMemberConfigData($randomParams);
22 22
 
23 23
 assert(!is_null($response), 'Cannot retrieve all config data');
24
-assert(2 == sizeof($response), 'Cannot retrieve all config data');
24
+assert(2==sizeof($response), 'Cannot retrieve all config data');
25 25
 assert(isset($response['data']), 'Cannot retrieve all config data');
26 26
 
27 27
 $randIndex = rand(0, sizeof($response['data']) - 1);
@@ -39,6 +39,6 @@  discard block
 block discarded – undo
39 39
 $response = $member->updateMemberConfigKey($params);
40 40
 
41 41
 assert(isset($response['affected']), 'Cannot update a config data');
42
-assert('1' == isset($response['affected']), 'Cannot update a config data');
42
+assert('1'==isset($response['affected']), 'Cannot update a config data');
43 43
 
44 44
 Route4Me::simplePrint($response);
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_specific_account_config_key_data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 $response = $member->getMemberConfigData($randomParams);
22 22
 
23 23
 assert(!is_null($response), 'Cannot retrieve all config data');
24
-assert(2 == sizeof($response), 'Cannot retrieve all config data');
24
+assert(2==sizeof($response), 'Cannot retrieve all config data');
25 25
 assert(isset($response['data']), 'Cannot retrieve all config data');
26 26
 
27 27
 $randomKey = $response['data'][rand(0, sizeof($response['data']) - 1)]['config_key'];
Please login to merge, or discard this patch.
examples/Activities/SendUserMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
 
25 25
 $results = $activities->sendUserMessage($postParameters);
26 26
 
27
-$msg = null != isset($results['status'])
28
-  ? (1 == $results['status'] ? 'The user message was sent to the route ' : 'he user message could not sent to the route ')
27
+$msg = null!=isset($results['status'])
28
+  ? (1==$results['status'] ? 'The user message was sent to the route ' : 'he user message could not sent to the route ')
29 29
    : 'The user message could not sent to the route ';
30 30
 
31 31
 $msg .= ' with route_id='.$route_id;
Please login to merge, or discard this patch.
examples/Activities/GetActivities.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php

namespace Route4Me;

$root = realpath(dirname(__FILE__).'/../../');
require $root.'/vendor/autoload.php';

assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_BAIL, 1);

// Set the api key in the Route4Me class
Route4Me::setApiKey(Constants::API_KEY);

$activityParameters = ActivityParameters::fromArray([
    'limit' => 10,
    'offset' => 0,
]);

$activities = new ActivityParameters();
$actResults = $activities->getActivities($activityParameters);
$results = $activities->getValue($actResults, 'results');

foreach ($results as $result) {
    Route4Me::simplePrint($result);
    echo '<br>';
}
2 1
\ No newline at end of file
2
+<?php

namespace Route4Me;

$root = realpath(dirname(__FILE__).'/../../');
require $root.'/vendor/autoload.php';

assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_BAIL, 1);

// Set the api key in the Route4Me class
Route4Me::setApiKey(Constants::API_KEY);

$activityParameters = ActivityParameters::fromArray([
    'limit' => 10,
    'offset' => 0, ]);

$activities = new ActivityParameters();
$actResults = $activities->getActivities($activityParameters);
$results = $activities->getValue($actResults, 'results');

foreach ($results as $result) {
    Route4Me::simplePrint($result);
    echo '<br>'; }
3 3
\ No newline at end of file
Please login to merge, or discard this patch.