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 ( 47d764...311795 )
by Igor
02:54 queued 01:29
created
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.
examples/Activities/GetActivitiesByMember.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 // Set the api key in the Route4Me class
12 12
 Route4Me::setApiKey(Constants::API_KEY);
13 13
 
14
-$MamberParames =Member::fromArray([ ]);
14
+$MamberParames = Member::fromArray([]);
15 15
 
16 16
 $member = new Member();
17 17
 
Please login to merge, or discard this patch.