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 ( fd5711...77a95b )
by Igor
09:00 queued 13s
created
examples/AddressBook/GetAddressBookLocationsByIDs.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 // Get two random locations IDs
12 12
 
13 13
 $addressBookLocationParameters = [
14
-    'limit'     => 30,
15
-    'offset'    => 0,
14
+	'limit'     => 30,
15
+	'offset'    => 0,
16 16
 ];
17 17
 
18 18
 $abContacts = new AddressBookLocation();
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
 $results = $abLocation->getValue($abcResult, 'results');
37 37
 
38 38
 foreach ($results as $result) {
39
-    Route4Me::simplePrint($result);
40
-    echo '<br>';
39
+	Route4Me::simplePrint($result);
40
+	echo '<br>';
41 41
 }
Please login to merge, or discard this patch.
examples/AddressBook/AddressBookLocationSearch.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 $abLocation = new AddressBookLocation();
14 14
 
15 15
 $params = [
16
-    'query'     => 'Test',
17
-    'fields'    => 'address_1,address_group,first_name,last_name',
18
-    'offset'    => 0,
19
-    'limit'     => 20,
16
+	'query'     => 'Test',
17
+	'fields'    => 'address_1,address_group,first_name,last_name',
18
+	'offset'    => 0,
19
+	'limit'     => 20,
20 20
 ];
21 21
 
22 22
 $abcResult = $abLocation->searchAddressBookLocations($params);
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_detected_as_departed.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 $addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
22 22
 
23 23
 if (isset($addressRand['is_depot'])) {
24
-    if ($addressRand['is_depot']) {
25
-        echo "Random chosen address is depot, it cannot be marked! Try again.";
24
+	if ($addressRand['is_depot']) {
25
+		echo "Random chosen address is depot, it cannot be marked! Try again.";
26 26
 
27
-        return;
28
-    }
27
+		return;
28
+	}
29 29
 }
30 30
 
31 31
 // Get random address's id from selected route above
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 
37 37
 // Mark the address as detected as deoarted
38 38
 $addressParameters = (array) Address::fromArray([
39
-    'route_id'              => $routeId,
40
-    'route_destination_id'  => $route_destination_id,
41
-    'is_departed'           => true,
39
+	'route_id'              => $routeId,
40
+	'route_destination_id'  => $route_destination_id,
41
+	'is_departed'           => true,
42 42
 ]);
43 43
 
44 44
 $address = new Address();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 assert(!is_null($routeId), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
22 22
 
23 23
 if (isset($addressRand['is_depot'])) {
24 24
     if ($addressRand['is_depot']) {
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 // Get random address's id from selected route above
32
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
32
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
33 33
 $route_destination_id = $addressRand['route_destination_id'];
34 34
 
35 35
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
36 36
 
37 37
 // Mark the address as detected as deoarted
38
-$addressParameters = (array) Address::fromArray([
38
+$addressParameters = (array)Address::fromArray([
39 39
     'route_id'              => $routeId,
40 40
     'route_destination_id'  => $route_destination_id,
41 41
     'is_departed'           => true,
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
@@ -27,19 +27,19 @@
 block discarded – undo
27 27
 $addresses = [];
28 28
 
29 29
 $address1 = (array) Address::fromArray([
30
-    'address'   => '717 5th Ave New York, NY 10021',
31
-    'alias'     => 'Giorgio Armani',
32
-    'lat'       => 40.7669692,
33
-    'lng'       => 73.9693864,
34
-    'time'      => 0,
30
+	'address'   => '717 5th Ave New York, NY 10021',
31
+	'alias'     => 'Giorgio Armani',
32
+	'lat'       => 40.7669692,
33
+	'lng'       => 73.9693864,
34
+	'time'      => 0,
35 35
 ]);
36 36
 
37 37
 $addresses[0] = $address1;
38 38
 
39 39
 $OptimizationParameters = (array) OptimizationProblem::fromArray([
40
-    'optimization_problem_id'   => $optimization_problem_id,
41
-    'addresses'                 => $addresses,
42
-    'reoptimize'                => 1,
40
+	'optimization_problem_id'   => $optimization_problem_id,
41
+	'addresses'                 => $addresses,
42
+	'reoptimize'                => 1,
43 43
 ]);
44 44
 
45 45
 $optimizationProblem = new OptimizationProblem();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 assert(!is_null($routeId), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
22 22
 $optimization_problem_id = $addressRand['optimization_problem_id'];
23 23
 
24 24
 assert(!is_null($optimization_problem_id), "Cannot retrieve random address");
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 // Add an address to the optimization
27 27
 $addresses = [];
28 28
 
29
-$address1 = (array) Address::fromArray([
29
+$address1 = (array)Address::fromArray([
30 30
     'address'   => '717 5th Ave New York, NY 10021',
31 31
     'alias'     => 'Giorgio Armani',
32 32
     'lat'       => 40.7669692,
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 $addresses[0] = $address1;
38 38
 
39
-$OptimizationParameters = (array) OptimizationProblem::fromArray([
39
+$OptimizationParameters = (array)OptimizationProblem::fromArray([
40 40
     'optimization_problem_id'   => $optimization_problem_id,
41 41
     'addresses'                 => $addresses,
42 42
     'reoptimize'                => 1,
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
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 assert(!is_null($routeId), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
22 22
 $route_destination_id = $addressRand['route_destination_id'];
23 23
 
24 24
 assert(!is_null($route_destination_id), "Cannot retrieve random address");
@@ -28,4 +28,4 @@  discard block
 block discarded – undo
28 28
 
29 29
 $addressRetrieved = $address->getAddress($routeId, $route_destination_id);
30 30
 
31
-Route4Me::simplePrint((array) $addressRetrieved);
31
+Route4Me::simplePrint((array)$addressRetrieved);
Please login to merge, or discard this patch.
examples/Addresses/AddRouteDestinations.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,25 +21,25 @@
 block discarded – undo
21 21
 $addresses = [];
22 22
 
23 23
 $address1 = (array) Address::fromArray([
24
-    'address'   => '146 Bill Johnson Rd NE Milledgeville GA 31061',
25
-    'lat'       => 33.143526,
26
-    'lng'       => -83.240354,
27
-    'time'      => 0,
24
+	'address'   => '146 Bill Johnson Rd NE Milledgeville GA 31061',
25
+	'lat'       => 33.143526,
26
+	'lng'       => -83.240354,
27
+	'time'      => 0,
28 28
 ]);
29 29
 
30 30
 $address2 = (array) Address::fromArray([
31
-    'address'   => '222 Blake Cir Milledgeville GA 31061',
32
-    'lat'       => 33.177852,
33
-    'lng'       => -83.263535,
34
-    'time'      => 0,
31
+	'address'   => '222 Blake Cir Milledgeville GA 31061',
32
+	'lat'       => 33.177852,
33
+	'lng'       => -83.263535,
34
+	'time'      => 0,
35 35
 ]);
36 36
 
37 37
 $addresses[] = $address1;
38 38
 $addresses[] = $address2;
39 39
 
40 40
 $routeParameters = [
41
-    'route_id'  => $routeId,
42
-    'addresses' => [$address1, $address2],
41
+	'route_id'  => $routeId,
42
+	'addresses' => [$address1, $address2],
43 43
 ];
44 44
 
45 45
 $route1 = new Route();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 // Add the destinations to the route
21 21
 $addresses = [];
22 22
 
23
-$address1 = (array) Address::fromArray([
23
+$address1 = (array)Address::fromArray([
24 24
     'address'   => '146 Bill Johnson Rd NE Milledgeville GA 31061',
25 25
     'lat'       => 33.143526,
26 26
     'lng'       => -83.240354,
27 27
     'time'      => 0,
28 28
 ]);
29 29
 
30
-$address2 = (array) Address::fromArray([
30
+$address2 = (array)Address::fromArray([
31 31
     'address'   => '222 Blake Cir Milledgeville GA 31061',
32 32
     'lat'       => 33.177852,
33 33
     'lng'       => -83.263535,
@@ -48,4 +48,4 @@  discard block
 block discarded – undo
48 48
 
49 49
 $result = $route1->addAddresses($routeParameters);
50 50
 
51
-Route4Me::simplePrint((array) $result);
51
+Route4Me::simplePrint((array)$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
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
 assert(!is_null($addressRand), "Cannot retrieve random address");
25 25
 
26 26
 if (isset($addressRand['is_depot'])) {
27
-    if ($addressRand['is_depot']) {
28
-        echo 'This address is depot! Try again.';
27
+	if ($addressRand['is_depot']) {
28
+		echo 'This address is depot! Try again.';
29 29
 
30
-        return;
31
-    }
30
+		return;
31
+	}
32 32
 }
33 33
 
34 34
 $route_destination_id = $addressRand['route_destination_id'];
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 
38 38
 // Remove the destination from the optimization
39 39
 $params = [
40
-    'optimization_problem_id'   => $optimization_problem_id,
41
-    'route_destination_id'      => $route_destination_id,
40
+	'optimization_problem_id'   => $optimization_problem_id,
41
+	'route_destination_id'      => $route_destination_id,
42 42
 ];
43 43
 
44 44
 $result = $optimization->removeAddress($params);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 assert(!is_null($optimization_problem_id), "Cannot retrieve random optimization_problem_id");
20 20
 
21 21
 // Get random destination from selected optimization above
22
-$addressRand = (array) $optimization->getRandomAddressFromOptimization($optimization_problem_id);
22
+$addressRand = (array)$optimization->getRandomAddressFromOptimization($optimization_problem_id);
23 23
 
24 24
 assert(!is_null($addressRand), "Cannot retrieve random address");
25 25
 
Please login to merge, or discard this patch.
examples/Addresses/insert_address_into_route_specific_position.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
 $addresses = [];
24 24
 
25 25
 $params = [
26
-    'route_id'  => $routeId,
27
-    'addresses' => [
28
-        '0' => [
29
-            'address'       => 'Cabo Rojo, Cabo Rojo 00623, Puerto Rico',
30
-            'alias'         => '',
31
-            'lat'           => 18.086627,
32
-            'lng'           => -67.145735,
33
-            'curbside_lat'  => 18.086627,
34
-            'curbside_lng'  => -67.145735,
35
-            'is_departed'   => false,
36
-            'is_visited'    => false,
37
-            'sequence_no'   => 3,
38
-        ],
39
-    ],
40
-    'optimal_position' => false,
26
+	'route_id'  => $routeId,
27
+	'addresses' => [
28
+		'0' => [
29
+			'address'       => 'Cabo Rojo, Cabo Rojo 00623, Puerto Rico',
30
+			'alias'         => '',
31
+			'lat'           => 18.086627,
32
+			'lng'           => -67.145735,
33
+			'curbside_lat'  => 18.086627,
34
+			'curbside_lng'  => -67.145735,
35
+			'is_departed'   => false,
36
+			'is_visited'    => false,
37
+			'sequence_no'   => 3,
38
+		],
39
+	],
40
+	'optimal_position' => false,
41 41
 ];
42 42
 
43 43
 $route1 = new Route();
@@ -51,5 +51,5 @@  discard block
 block discarded – undo
51 51
 assert(isset($result->addresses), "Cannot insert a destination into the route");
52 52
 
53 53
 foreach ($result->addresses as $address) {
54
-    echo 'Address -> '.$address->address, ', Sequence number -> '.$address->sequence_no.'<br>';
54
+	echo 'Address -> '.$address->address, ', Sequence number -> '.$address->sequence_no.'<br>';
55 55
 }
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_detected_as_visited.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 $addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
22 22
 
23 23
 if (isset($addressRand['is_depot'])) {
24
-    if ($addressRand['is_depot']) {
25
-        echo "Random chosen address is depot, it cannot be marked!.. Try again.";
24
+	if ($addressRand['is_depot']) {
25
+		echo "Random chosen address is depot, it cannot be marked!.. Try again.";
26 26
 
27
-        return;
28
-    }
27
+		return;
28
+	}
29 29
 }
30 30
 
31 31
 $address_id = $addressRand['route_destination_id'];
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 // Mark the address as detected as visited
36 36
 $addressParameters = (array) Address::fromArray([
37
-    'route_id'              => $routeId,
38
-    'route_destination_id'  => $address_id,
39
-    'is_visited'            => true,
37
+	'route_id'              => $routeId,
38
+	'route_destination_id'  => $address_id,
39
+	'is_visited'            => true,
40 40
 ]);
41 41
 
42 42
 $address = new Address();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 assert(!is_null($routeId), "Cannot retrieve random route_id");
19 19
 
20 20
 // Get random address's id from selected route above
21
-$addressRand = (array) $route->GetRandomAddressFromRoute($routeId);
21
+$addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
22 22
 
23 23
 if (isset($addressRand['is_depot'])) {
24 24
     if ($addressRand['is_depot']) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 assert(!is_null($address_id), "Cannot retrieve random address");
34 34
 
35 35
 // Mark the address as detected as visited
36
-$addressParameters = (array) Address::fromArray([
36
+$addressParameters = (array)Address::fromArray([
37 37
     'route_id'              => $routeId,
38 38
     'route_destination_id'  => $address_id,
39 39
     'is_visited'            => true,
Please login to merge, or discard this patch.