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/Activities/SearchActivities.php 1 patch
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.
examples/Activities/GetRouteActivities.php 1 patch
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.
examples/Activities/SendUserMessage.php 1 patch
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.
examples/Activities/GetRouteTeamActivities.php 1 patch
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.
examples/Addresses/RemoveDestinationFromOptimization.php 1 patch
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.
examples/Addresses/AddDestinationToOptimization.php 1 patch
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.
examples/Addresses/insert_address_into_route_optimal_position.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,20 +25,20 @@
 block discarded – undo
25 25
 $addresses = array();
26 26
 
27 27
 $params = array(
28
-    "route_id"  => $routeId,
29
-    "addresses" => array(
30
-        "0" => array(
31
-            "address"      => "Cabo Rojo, Cabo Rojo 00623, Puerto Rico",
32
-            "alias"        => "",
33
-            "lat"          => 18.086627,
34
-            "lng"          => -67.145735,
35
-            "curbside_lat" => 18.086627,
36
-            "curbside_lng" => -67.145735,
37
-            "is_departed"  => false,
38
-            "is_visited"   => false
39
-        )
40
-    ),
41
-    "optimal_position" => true
28
+	"route_id"  => $routeId,
29
+	"addresses" => array(
30
+		"0" => array(
31
+			"address"      => "Cabo Rojo, Cabo Rojo 00623, Puerto Rico",
32
+			"alias"        => "",
33
+			"lat"          => 18.086627,
34
+			"lng"          => -67.145735,
35
+			"curbside_lat" => 18.086627,
36
+			"curbside_lng" => -67.145735,
37
+			"is_departed"  => false,
38
+			"is_visited"   => false
39
+		)
40
+	),
41
+	"optimal_position" => true
42 42
 );
43 43
 
44 44
 $route1 = new Route();
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_detected_as_visited.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 
26 26
 if (isset($addressRand['is_depot']))
27 27
 {
28
-    if ($addressRand['is_depot']) {
29
-        echo "Random choosed address is depot, it can't be marked!.. Try again.";
30
-        return;
31
-    }
28
+	if ($addressRand['is_depot']) {
29
+		echo "Random choosed address is depot, it can't be marked!.. Try again.";
30
+		return;
31
+	}
32 32
 }
33 33
 
34 34
 $address_id = $addressRand['route_destination_id'];
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
 
38 38
 // Mark the address as detected as visited
39 39
 $addressParameters=(array)Address::fromArray(array(
40
-    "route_id"              => $routeId,
41
-    "route_destination_id"  => $address_id,
40
+	"route_id"              => $routeId,
41
+	"route_destination_id"  => $address_id,
42 42
 ));
43 43
 
44 44
 $body= array(
45
-    "is_visited"  => TRUE,
45
+	"is_visited"  => TRUE,
46 46
 );
47 47
 
48 48
 $address = new Address();
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_departed.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 $address=new Address();
30 30
 
31 31
 $params = array(
32
-    "route_id"     => $routeId,
33
-    "address_id"   => $route_destination_id,
34
-    "is_departed"  => 1,
35
-    "member_id"    => 1
32
+	"route_id"     => $routeId,
33
+	"address_id"   => $route_destination_id,
34
+	"is_departed"  => 1,
35
+	"member_id"    => 1
36 36
 );
37 37
 
38 38
 $result = $address->markAsDeparted($params);
Please login to merge, or discard this patch.