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
Branch Editing-Fixing (c4d168)
by Igor
03:30
created
examples/Activities/SearchActivities.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,19 +17,19 @@
 block discarded – undo
17 17
 
18 18
 // Itereate through all the existing activity types
19 19
 foreach ($activityTypes->getConstants() as $prop => $value) {
20
-    $activityParameters = ActivityParameters::fromArray(array(
21
-        "activity_type" => $value,
22
-        "limit"         => 2,
23
-        "offset"        => 0
24
-    ));
20
+	$activityParameters = ActivityParameters::fromArray(array(
21
+		"activity_type" => $value,
22
+		"limit"         => 2,
23
+		"offset"        => 0
24
+	));
25 25
     
26
-    $activities = new ActivityParameters();
27
-    $results = $activities->searcActivities($activityParameters);
26
+	$activities = new ActivityParameters();
27
+	$results = $activities->searcActivities($activityParameters);
28 28
     
29
-    foreach ($results as $key => $activity) {
30
-        Route4Me::simplePrint($activity);
31
-        echo "<br>";
32
-    }
29
+	foreach ($results as $key => $activity) {
30
+		Route4Me::simplePrint($activity);
31
+		echo "<br>";
32
+	}
33 33
     
34
-    echo "------------------- <br><br>";
34
+	echo "------------------- <br><br>";
35 35
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 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;
Please login to merge, or discard this patch.
examples/Activities/GetActivities.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16 16
 $activityParameters = ActivityParameters::fromArray(array(
17
-    "limit" => 10,
18
-    "offset" => 0
17
+	"limit" => 10,
18
+	"offset" => 0
19 19
 ));
20 20
 
21 21
 $activities = new ActivityParameters();
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
 $results = $activities->getValue($actresults, "results");
24 24
 
25 25
 foreach ($results as $result) {
26
-    Route4Me::simplePrint($result);
27
-    echo "<br>";
26
+	Route4Me::simplePrint($result);
27
+	echo "<br>";
28 28
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 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;
Please login to merge, or discard this patch.
examples/Activities/GetRouteActivities.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,20 +21,20 @@
 block discarded – undo
21 21
 
22 22
 // Itereate through all the existing activity types
23 23
 foreach ($activityTypes->getConstants() as $prop => $value) {
24
-    $activityParameters = ActivityParameters::fromArray(array(
25
-        "activity_type" => $value,
26
-        "limit"         => 2,
27
-        "offset"        => 0,
28
-        "route_id"      => $route_id
29
-    ));
24
+	$activityParameters = ActivityParameters::fromArray(array(
25
+		"activity_type" => $value,
26
+		"limit"         => 2,
27
+		"offset"        => 0,
28
+		"route_id"      => $route_id
29
+	));
30 30
     
31
-    $activities = new ActivityParameters();
32
-    $results = $activities->searcActivities($activityParameters);
31
+	$activities = new ActivityParameters();
32
+	$results = $activities->searcActivities($activityParameters);
33 33
     
34
-    foreach ($results as $key => $activity) {
35
-        Route4Me::simplePrint($activity);
36
-        echo "<br>";
37
-    }
34
+	foreach ($results as $key => $activity) {
35
+		Route4Me::simplePrint($activity);
36
+		echo "<br>";
37
+	}
38 38
     
39
-    echo "------------------- <br><br>";
39
+	echo "------------------- <br><br>";
40 40
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 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;
Please login to merge, or discard this patch.
examples/Activities/GetLastActivities.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 Route4Me::setApiKey('11111111111111111111111111111111');
17 17
 
18 18
 $activityParameters = ActivityParameters::fromArray(array(
19
-    "limit" => 10,
20
-    "offset" => 0,
21
-    "start" => strtotime("-1 week")
19
+	"limit" => 10,
20
+	"offset" => 0,
21
+	"start" => strtotime("-1 week")
22 22
 ));
23 23
 
24 24
 $activities = new ActivityParameters();
@@ -26,6 +26,6 @@  discard block
 block discarded – undo
26 26
 $results = $activities->getValue($actresults, "results");
27 27
 
28 28
 foreach ($results as $result) {
29
-    Route4Me::simplePrint($result);
30
-    echo "<br>";
29
+	Route4Me::simplePrint($result);
30
+	echo "<br>";
31 31
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 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;
Please login to merge, or discard this patch.
examples/Activities/SendUserMessage.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 $route_id = $route->getRandomRouteId(0, 10);
18 18
 
19 19
 $postParameters = ActivityParameters::fromArray(array(
20
-    "activity_type"     => "user_message",
21
-    "activity_message"  => "Hello - php!",
22
-    "route_id"          => $route_id
20
+	"activity_type"     => "user_message",
21
+	"activity_message"  => "Hello - php!",
22
+	"route_id"          => $route_id
23 23
 ));
24 24
 
25 25
 $activities = new ActivityParameters();
Please login to merge, or discard this 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;
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 
27 27
 $results = $activities->sendUserMessage($postParameters);
28 28
 
29
-$msg = isset($results["status"]) != null
29
+$msg = isset($results["status"])!=null
30 30
   ? ($results["status"]==1 ? "The user message was sent to the route " : "he user message could not sent to the route ")
31 31
    : "The user message could not sent to the route "; 
32 32
    
33
-$msg.=" with route_id=".$route_id;
33
+$msg .= " with route_id=".$route_id;
34 34
    
35 35
 echo "<br> $msg <br>";   
Please login to merge, or discard this patch.
examples/Activities/GetRouteTeamActivities.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 assert(!is_null($routeId), "can't retrieve random route_id");
21 21
 
22 22
 $activityParameters = ActivityParameters::fromArray(array(
23
-    "route_id"    => $routeId,
24
-    "team"        => "true"
23
+	"route_id"    => $routeId,
24
+	"team"        => "true"
25 25
 ));
26 26
 
27 27
 $activities = new ActivityParameters();
@@ -30,5 +30,5 @@  discard block
 block discarded – undo
30 30
 
31 31
 foreach ($results as $result) {
32 32
 	Route4Me::simplePrint($result);
33
-    echo "<br>";
33
+	echo "<br>";
34 34
 }
Please login to merge, or discard this 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\Route;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 $activities = new ActivityParameters();
28 28
 $actresults = $activities->get($activityParameters);
29
-$results = $activities->getValue($actresults,"results");
29
+$results = $activities->getValue($actresults, "results");
30 30
 
31 31
 foreach ($results as $result) {
32 32
 	Route4Me::simplePrint($result);
Please login to merge, or discard this patch.
examples/Addresses/RemoveDestinationFromOptimization.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 assert(!is_null($addressRand), "Can't retrieve random address");
28 28
 
29 29
 if (isset($addressRand['is_depot'])) {
30
-    if ($addressRand['is_depot']) {
31
-        echo "This address is depot!.. Try again.";
32
-        return;
33
-    }
30
+	if ($addressRand['is_depot']) {
31
+		echo "This address is depot!.. Try again.";
32
+		return;
33
+	}
34 34
 }
35 35
 
36 36
 $route_destination_id = $addressRand['route_destination_id'];
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
 // Remove the destination from the optimization
41 41
 $params = array (
42
-    "optimization_problem_id"  => $optimization_problem_id,
43
-    "route_destination_id"     => $route_destination_id
42
+	"optimization_problem_id"  => $optimization_problem_id,
43
+	"route_destination_id"     => $route_destination_id
44 44
 );
45 45
 
46 46
 $result = $optimization->removeAddress($params);
Please login to merge, or discard this 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\Address;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 assert(!is_null($route_destination_id), "Can't retrieve random address");
39 39
 
40 40
 // Remove the destination from the optimization
41
-$params = array (
41
+$params = array(
42 42
     "optimization_problem_id"  => $optimization_problem_id,
43 43
     "route_destination_id"     => $route_destination_id
44 44
 );
Please login to merge, or discard this patch.
examples/Addresses/AddDestinationToOptimization.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
 $addresses = array();
31 31
 
32 32
 $address1 = (array)Address::fromArray(array(
33
-    'address'  =>  '717 5th Ave New York, NY 10021',
34
-    'alias'    =>  'Giorgio Armani',
35
-    'lat'      =>  40.7669692,
36
-    'lng'      =>  73.9693864,
37
-    'time'     =>  0
33
+	'address'  =>  '717 5th Ave New York, NY 10021',
34
+	'alias'    =>  'Giorgio Armani',
35
+	'lat'      =>  40.7669692,
36
+	'lng'      =>  73.9693864,
37
+	'time'     =>  0
38 38
 ));
39 39
 
40 40
 $addresses[0] = $address1;
41 41
 
42 42
 $OptimizationParameters = (array)OptimizationProblem::fromArray(array(
43
-    "optimization_problem_id"  => $optimization_problem_id,
44
-    "addresses"                => $addresses,
45
-    "reoptimize"               => 1,
43
+	"optimization_problem_id"  => $optimization_problem_id,
44
+	"addresses"                => $addresses,
45
+	"reoptimize"               => 1,
46 46
 ));
47 47
 
48 48
 $optimizationproblem = new OptimizationProblem();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 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;
Please login to merge, or discard this patch.
examples/Addresses/GetAddress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 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;
Please login to merge, or discard this patch.