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 ( a425f6...d42ccd )
by Oleg
01:59
created
examples/single_driver_round_trip.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -27,19 +27,19 @@  discard block
 block discarded – undo
27 27
 $addresses = array();
28 28
 
29 29
 foreach($json as $address) {
30
-    $addresses[] = Address::fromArray($address);
30
+	$addresses[] = Address::fromArray($address);
31 31
 }
32 32
 
33 33
 $parameters = RouteParameters::fromArray(array(
34
-    "algorithm_type"          => AlgorithmType::TSP,
35
-    "distance_unit"           => DistanceUnit::MILES,
36
-    "device_type"             => DeviceType::WEB,
37
-    "optimize"                => OptimizationType::DISTANCE,
38
-    "travel_mode"             => TravelMode::DRIVING,
39
-    "route_max_duration"      => 86400,
40
-    "vehicle_capacity"        => 1,
41
-    "vehicle_max_distance_mi" => 10000,
42
-    "rt"                      => true
34
+	"algorithm_type"          => AlgorithmType::TSP,
35
+	"distance_unit"           => DistanceUnit::MILES,
36
+	"device_type"             => DeviceType::WEB,
37
+	"optimize"                => OptimizationType::DISTANCE,
38
+	"travel_mode"             => TravelMode::DRIVING,
39
+	"route_max_duration"      => 86400,
40
+	"vehicle_capacity"        => 1,
41
+	"vehicle_max_distance_mi" => 10000,
42
+	"rt"                      => true
43 43
 ));
44 44
 
45 45
 $optimizationParams = new OptimizationProblemParams;
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
 $problems = OptimizationProblem::optimize($optimizationParams);
50 50
 
51 51
 foreach ($problems as $problem) {
52
-    if (is_array($problem) || is_object($problem)) {
53
-        foreach ($problem as $key => $value) {
54
-            if (!is_object($value)) {
55
-                echo $key." --> ".$value."<br>";
56
-            }
57
-        }
58
-    }
52
+	if (is_array($problem) || is_object($problem)) {
53
+		foreach ($problem as $key => $value) {
54
+			if (!is_object($value)) {
55
+				echo $key." --> ".$value."<br>";
56
+			}
57
+		}
58
+	}
59 59
 }
Please login to merge, or discard this patch.
examples/optimizationWithCallbackUrl.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -29,20 +29,20 @@  discard block
 block discarded – undo
29 29
 $addresses = array();
30 30
 
31 31
 foreach($json as $address) {
32
-    $addresses[] = Address::fromArray($address);
32
+	$addresses[] = Address::fromArray($address);
33 33
 }
34 34
 
35 35
 $parameters = RouteParameters::fromArray(array(
36
-    "algorithm_type"          => AlgorithmType::TSP,
37
-    "distance_unit"           => DistanceUnit::MILES,
38
-    "device_type"             => DeviceType::WEB,
39
-    "optimize"                => OptimizationType::DISTANCE,
40
-    "travel_mode"             => TravelMode::DRIVING,
41
-    "route_max_duration"      => 86400,
42
-    "vehicle_capacity"        => 1,
43
-    "vehicle_max_distance_mi" => 10000,
44
-    "rt"                      => true,
45
-    "optimized_callback_url"  => "https://requestb.in/1o6cgge1"
36
+	"algorithm_type"          => AlgorithmType::TSP,
37
+	"distance_unit"           => DistanceUnit::MILES,
38
+	"device_type"             => DeviceType::WEB,
39
+	"optimize"                => OptimizationType::DISTANCE,
40
+	"travel_mode"             => TravelMode::DRIVING,
41
+	"route_max_duration"      => 86400,
42
+	"vehicle_capacity"        => 1,
43
+	"vehicle_max_distance_mi" => 10000,
44
+	"rt"                      => true,
45
+	"optimized_callback_url"  => "https://requestb.in/1o6cgge1"
46 46
 ));
47 47
 
48 48
 $optimizationParams = new OptimizationProblemParams;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 $problems = OptimizationProblem::optimize($optimizationParams);
53 53
 
54 54
 foreach ($problems as $problem) {
55
-    if (is_array($problem) || is_object($problem)) {
56
-        foreach ($problem as $key => $value) {
57
-            if (!is_object($value)) {
58
-                echo $key." --> ".$value."<br>";
59
-            }
60
-        }
61
-    }
55
+	if (is_array($problem) || is_object($problem)) {
56
+		foreach ($problem as $key => $value) {
57
+			if (!is_object($value)) {
58
+				echo $key." --> ".$value."<br>";
59
+			}
60
+		}
61
+	}
62 62
 }
Please login to merge, or discard this patch.
examples/Members/create_device_record.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $recordParameters=Member::fromArray(array(
16
-    'device_id'   => '546546516',
17
-    'device_type' => 'IPAD',
18
-    'format'      => 'json',
16
+	'device_id'   => '546546516',
17
+	'device_type' => 'IPAD',
18
+	'format'      => 'json',
19 19
 ));
20 20
 
21 21
 $member = new Member();
Please login to merge, or discard this patch.
examples/Members/purchase_user_license.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $recordParameters=Member::fromArray(array(
16
-    'member_id'         => 777777,
17
-    'session_guid'      => '454563',
18
-    'device_id'         => '54564',
19
-    'device_type'       =>'ipad',
20
-    'subscription_name' =>'IPAD_MONTHLY',
21
-    'token'             =>'4/P7q7W91a-oMsCeLvIaQm6bTrgtp7',
22
-    'payload'           =>'APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx',
23
-    'format'            =>'json'
16
+	'member_id'         => 777777,
17
+	'session_guid'      => '454563',
18
+	'device_id'         => '54564',
19
+	'device_type'       =>'ipad',
20
+	'subscription_name' =>'IPAD_MONTHLY',
21
+	'token'             =>'4/P7q7W91a-oMsCeLvIaQm6bTrgtp7',
22
+	'payload'           =>'APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx',
23
+	'format'            =>'json'
24 24
 ));
25 25
 
26 26
 $member = new Member();
Please login to merge, or discard this patch.
examples/Members/member_update.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
 
25 25
 // Update member
26 26
 $params = Member::fromArray(array (
27
-    "member_id"    => $randomMemberID,
28
-    "member_phone" => "555-777-888"
27
+	"member_id"    => $randomMemberID,
28
+	"member_phone" => "555-777-888"
29 29
 ));
30 30
 
31 31
 $response = $member->updateMember($params);
Please login to merge, or discard this patch.
examples/AddressBook/UpdateAddressBookLocation.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
16
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
-    "cached_lat"  => 38.024654,
19
-    "cached_lng"  => -77.338814
16
+	"first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
+	"address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
+	"cached_lat"  => 38.024654,
19
+	"cached_lng"  => -77.338814
20 20
 ));
21 21
 
22 22
 $abLocation = new AddressBookLocation();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 assert(isset($abcResult['address_id']), "Cannot create an address book location. <br><br>");
29 29
 
30 30
 if (isset($abcResult["address_id"])) {
31
-    $address_id = $abcResult["address_id"];
31
+	$address_id = $abcResult["address_id"];
32 32
 }
33 33
 
34 34
 assert($address_id != -1, "Cannot create an address book location. <br><br>");
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocations.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 // Example refers to getting the address book locations
14 14
 
15 15
 $AdressBookLocationParameters = array(
16
-    "limit"   => 30,
17
-    "offset"  => 0
16
+	"limit"   => 30,
17
+	"offset"  => 0
18 18
 );
19 19
 
20 20
 $abContacts = new AddressBookLocation();
@@ -25,5 +25,5 @@  discard block
 block discarded – undo
25 25
 
26 26
 foreach ($results as $result) {
27 27
 	Route4Me::simplePrint($result);
28
-    echo "<br>";
28
+	echo "<br>";
29 29
 }
Please login to merge, or discard this patch.
examples/Routes/UpdateDestinationCustomData.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
 $route->parameters = new \stdClass();
32 32
 
33 33
 $route->parameters->custom_fields = array(
34
-        "animal"  => "tiger",
35
-        "bird"    => "canary"
34
+		"animal"  => "tiger",
35
+		"bird"    => "canary"
36 36
 );
37 37
 
38 38
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteDestination.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -31,38 +31,38 @@
 block discarded – undo
31 31
 $route->parameters = new \stdClass();
32 32
 
33 33
 $route->addresses = array( Address::fromArray(array(
34
-    "alias"                   =>  "new address alias",
35
-    "first_name"              =>  "Edi",
36
-    "last_name"               =>  "Jacobson",
37
-    "address"                 =>  "230 Arbor Way Milledgeville GA 31061",
38
-    "is_depot"                =>  false,
39
-    "lat"                     =>  33.129695892334,
40
-    "lng"                     =>  -83.24577331543,
41
-    "sequence_no"             =>  9,
42
-    "is_visited"              =>  true,
43
-    "is_departed"             =>  false,
44
-    "timestamp_last_visited"  =>  36000,
45
-    "timestamp_last_departed" =>  null,
46
-    "customer_po"             =>  "po_131324566",
47
-    "invoice_no"              =>  "in549874",
48
-    "reference_no"            =>  "7988544",
49
-    "order_no"                =>  "on654754",
50
-    "order_id"                =>  4564,
51
-    "weight"                  =>  45,
52
-    "cost"                    =>  55.60,
53
-    "revenue"                 =>  75.80,
54
-    "cube"                    =>  3,
55
-    "pieces"                  =>  30,
56
-    "email"                   =>  "[email protected]",
57
-    "phone"                   =>  "111-222-333",
58
-    "time_window_start"       =>  36600,
59
-    "time_window_end"         =>  37200,
60
-    "time"                    =>  600,
61
-    "priority"                =>  1,
62
-    "curbside_lat"            =>  33.129695892334,
63
-    "curbside_lng"            =>  -83.24577331543,
64
-    "time_window_start_2"     =>  39400,
65
-    "time_window_end_2"       =>  40000
34
+	"alias"                   =>  "new address alias",
35
+	"first_name"              =>  "Edi",
36
+	"last_name"               =>  "Jacobson",
37
+	"address"                 =>  "230 Arbor Way Milledgeville GA 31061",
38
+	"is_depot"                =>  false,
39
+	"lat"                     =>  33.129695892334,
40
+	"lng"                     =>  -83.24577331543,
41
+	"sequence_no"             =>  9,
42
+	"is_visited"              =>  true,
43
+	"is_departed"             =>  false,
44
+	"timestamp_last_visited"  =>  36000,
45
+	"timestamp_last_departed" =>  null,
46
+	"customer_po"             =>  "po_131324566",
47
+	"invoice_no"              =>  "in549874",
48
+	"reference_no"            =>  "7988544",
49
+	"order_no"                =>  "on654754",
50
+	"order_id"                =>  4564,
51
+	"weight"                  =>  45,
52
+	"cost"                    =>  55.60,
53
+	"revenue"                 =>  75.80,
54
+	"cube"                    =>  3,
55
+	"pieces"                  =>  30,
56
+	"email"                   =>  "[email protected]",
57
+	"phone"                   =>  "111-222-333",
58
+	"time_window_start"       =>  36600,
59
+	"time_window_end"         =>  37200,
60
+	"time"                    =>  600,
61
+	"priority"                =>  1,
62
+	"curbside_lat"            =>  33.129695892334,
63
+	"curbside_lng"            =>  -83.24577331543,
64
+	"time_window_start_2"     =>  39400,
65
+	"time_window_end_2"       =>  40000
66 66
 )));
67 67
 
68 68
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.