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 ( e5b8eb...47d764 )
by Igor
01:54 queued 12s
created
examples/AddressBook_V5/GetAddressesPaginatedByBodyPayload.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -17,44 +17,44 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
21
-
22
-    /////////////////////////////////////////////
23
-    // get the first page of addresses from server
24
-    $res = $ab->getAddressesPaginatedByBodyPayload();
25
-    print_r($res);
26
-
27
-    /////////////////////////////////////////////
28
-    // get only the 5 fields of addresses from server
29
-    $options = [
30
-        'fields' => ['address_id', 'address_1', 'first_name', 'last_name', 'address_city'],
31
-        'page' => 2,
32
-        'per_page' => 10
33
-    ];
34
-    $res = $ab->getAddressesPaginatedByBodyPayload($options);
35
-    print_r($res);
36
-
37
-    /////////////////////////////////////////////
38
-    // get the first 5 addresses in the selected area from the server
39
-    $options = [
40
-        'filter' => [
41
-            'selected_areas' => [[
42
-                'type' => 'circle',
43
-                'value' => [
44
-                    'center' => [
45
-                        'lat' => 52.4025,
46
-                        'lng' => 4.5601
47
-                    ],
48
-                    'distance' => 10000
49
-                ]
50
-            ]]
51
-        ],
52
-        'page' => 2,
53
-        'per_page' => 10
54
-    ];
55
-    $res = $ab->getAddressesPaginatedByBodyPayload($options);
56
-    print_r($res);
20
+	$ab = new AddressBook();
21
+
22
+	/////////////////////////////////////////////
23
+	// get the first page of addresses from server
24
+	$res = $ab->getAddressesPaginatedByBodyPayload();
25
+	print_r($res);
26
+
27
+	/////////////////////////////////////////////
28
+	// get only the 5 fields of addresses from server
29
+	$options = [
30
+		'fields' => ['address_id', 'address_1', 'first_name', 'last_name', 'address_city'],
31
+		'page' => 2,
32
+		'per_page' => 10
33
+	];
34
+	$res = $ab->getAddressesPaginatedByBodyPayload($options);
35
+	print_r($res);
36
+
37
+	/////////////////////////////////////////////
38
+	// get the first 5 addresses in the selected area from the server
39
+	$options = [
40
+		'filter' => [
41
+			'selected_areas' => [[
42
+				'type' => 'circle',
43
+				'value' => [
44
+					'center' => [
45
+						'lat' => 52.4025,
46
+						'lng' => 4.5601
47
+					],
48
+					'distance' => 10000
49
+				]
50
+			]]
51
+		],
52
+		'page' => 2,
53
+		'per_page' => 10
54
+	];
55
+	$res = $ab->getAddressesPaginatedByBodyPayload($options);
56
+	print_r($res);
57 57
 } catch (ApiError $e) {
58
-    echo $e->getCode() . PHP_EOL;
59
-    echo $e->getMessage() . PHP_EOL;
58
+	echo $e->getCode() . PHP_EOL;
59
+	echo $e->getMessage() . PHP_EOL;
60 60
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
     $res = $ab->getAddressesPaginatedByBodyPayload($options);
56 56
     print_r($res);
57 57
 } catch (ApiError $e) {
58
-    echo $e->getCode() . PHP_EOL;
59
-    echo $e->getMessage() . PHP_EOL;
58
+    echo $e->getCode().PHP_EOL;
59
+    echo $e->getMessage().PHP_EOL;
60 60
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/AddAddress.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -18,35 +18,35 @@
 block discarded – undo
18 18
 Route4Me::setApiKey(Constants::API_KEY);
19 19
 
20 20
 try {
21
-    $ab = new AddressBook();
22
-
23
-    /////////////////////////////////////////////
24
-    // add adress from array
25
-    $params = [
26
-        'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514',
27
-        'cached_lat' => 38.024654,
28
-        'cached_lng' => 77.338814,
29
-        'address_stop_type' => 'DELIVERY',
30
-        'address_city' => 'Tbilisi Vah',
31
-        'first_name' => 'Tusha',
32
-        'last_name' => 'Grigoriani'
33
-    ];
34
-    $res = $ab->addAddress($params);
35
-    print_r($res);
36
-
37
-    /////////////////////////////////////////////
38
-    // add adress from Address and array
39
-    $params['address_stop_type'] = 'VISIT';
40
-    $address = new Address($params);
41
-    $res = $ab->addAddress($address);
42
-    print_r($res);
43
-
44
-    /////////////////////////////////////////////
45
-    // add adress from Address
46
-    $address = new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY');
47
-    $res = $ab->addAddress($address);
48
-    print_r($res);
21
+	$ab = new AddressBook();
22
+
23
+	/////////////////////////////////////////////
24
+	// add adress from array
25
+	$params = [
26
+		'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514',
27
+		'cached_lat' => 38.024654,
28
+		'cached_lng' => 77.338814,
29
+		'address_stop_type' => 'DELIVERY',
30
+		'address_city' => 'Tbilisi Vah',
31
+		'first_name' => 'Tusha',
32
+		'last_name' => 'Grigoriani'
33
+	];
34
+	$res = $ab->addAddress($params);
35
+	print_r($res);
36
+
37
+	/////////////////////////////////////////////
38
+	// add adress from Address and array
39
+	$params['address_stop_type'] = 'VISIT';
40
+	$address = new Address($params);
41
+	$res = $ab->addAddress($address);
42
+	print_r($res);
43
+
44
+	/////////////////////////////////////////////
45
+	// add adress from Address
46
+	$address = new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY');
47
+	$res = $ab->addAddress($address);
48
+	print_r($res);
49 49
 } catch (ApiError $e) {
50
-    echo $e->getCode() . PHP_EOL;
51
-    echo $e->getMessage() . PHP_EOL;
50
+	echo $e->getCode() . PHP_EOL;
51
+	echo $e->getMessage() . PHP_EOL;
52 52
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
     $res = $ab->addAddress($address);
48 48
     print_r($res);
49 49
 } catch (ApiError $e) {
50
-    echo $e->getCode() . PHP_EOL;
51
-    echo $e->getMessage() . PHP_EOL;
50
+    echo $e->getCode().PHP_EOL;
51
+    echo $e->getMessage().PHP_EOL;
52 52
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/DeleteAddressesByIds.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
20
+	$ab = new AddressBook();
21 21
 
22
-    $addressIds = [96100573, 96100961];
23
-    $res = $ab->deleteAddressesByIds($addressIds);
24
-    print_r($res);
22
+	$addressIds = [96100573, 96100961];
23
+	$res = $ab->deleteAddressesByIds($addressIds);
24
+	print_r($res);
25 25
 } catch (ApiError $e) {
26
-    echo $e->getCode() . PHP_EOL;
27
-    echo $e->getMessage() . PHP_EOL;
26
+	echo $e->getCode() . PHP_EOL;
27
+	echo $e->getMessage() . PHP_EOL;
28 28
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 namespace Route4Me;
9 9
 
10
-$root = realpath(dirname(__FILE__) . '/../../');
11
-require $root . '/vendor/autoload.php';
10
+$root = realpath(dirname(__FILE__).'/../../');
11
+require $root.'/vendor/autoload.php';
12 12
 
13 13
 use Route4Me\Exception\ApiError;
14 14
 use Route4Me\V5\AddressBook\AddressBook;
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
     $res = $ab->deleteAddressesByIds($addressIds);
24 24
     print_r($res);
25 25
 } catch (ApiError $e) {
26
-    echo $e->getCode() . PHP_EOL;
27
-    echo $e->getMessage() . PHP_EOL;
26
+    echo $e->getCode().PHP_EOL;
27
+    echo $e->getMessage().PHP_EOL;
28 28
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressById.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 Route4Me::setApiKey(Constants::API_KEY);
17 17
 
18 18
 try {
19
-    $ab = new AddressBook();
19
+	$ab = new AddressBook();
20 20
 
21
-    $addressId = 51111441;
22
-    $res = $ab->getAddressById($addressId);
23
-    print_r($res);
21
+	$addressId = 51111441;
22
+	$res = $ab->getAddressById($addressId);
23
+	print_r($res);
24 24
 } catch (ApiError $e) {
25
-    echo $e->getCode() . PHP_EOL;
26
-    echo $e->getMessage() . PHP_EOL;
25
+	echo $e->getCode() . PHP_EOL;
26
+	echo $e->getMessage() . PHP_EOL;
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
     $res = $ab->getAddressById($addressId);
23 23
     print_r($res);
24 24
 } catch (ApiError $e) {
25
-    echo $e->getCode() . PHP_EOL;
26
-    echo $e->getMessage() . PHP_EOL;
25
+    echo $e->getCode().PHP_EOL;
26
+    echo $e->getMessage().PHP_EOL;
27 27
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/ExportAddressesByIds.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
20
+	$ab = new AddressBook();
21 21
 
22
-    $addressIds = [96100573, 96100961];
23
-    $filename = 'test_export.csv';
22
+	$addressIds = [96100573, 96100961];
23
+	$filename = 'test_export.csv';
24 24
 
25
-    $res = $ab->exportAddressesByIds($addressIds, $filename);
26
-    print_r($res);
25
+	$res = $ab->exportAddressesByIds($addressIds, $filename);
26
+	print_r($res);
27 27
 } catch (ApiError $e) {
28
-    echo $e->getCode() . PHP_EOL;
29
-    echo $e->getMessage() . PHP_EOL;
28
+	echo $e->getCode() . PHP_EOL;
29
+	echo $e->getMessage() . PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     $res = $ab->exportAddressesByIds($addressIds, $filename);
26 26
     print_r($res);
27 27
 } catch (ApiError $e) {
28
-    echo $e->getCode() . PHP_EOL;
29
-    echo $e->getMessage() . PHP_EOL;
28
+    echo $e->getCode().PHP_EOL;
29
+    echo $e->getMessage().PHP_EOL;
30 30
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressesPaginated.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -17,33 +17,33 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
21
-
22
-    /////////////////////////////////////////////
23
-    // get the first page of addresses from server
24
-    $res = $ab->getAddressesPaginated();
25
-    print_r($res);
26
-
27
-    /////////////////////////////////////////////
28
-    // get only the 5 fields of addresses from server
29
-    $options = [
30
-        'fields' => "address_id, address_1, first_name, last_name, address_city",
31
-        'page' => 2,
32
-        'per_page' => 10
33
-    ];
34
-    $res = $ab->getAddressesPaginated($options);
35
-    print_r($res);
36
-
37
-    /////////////////////////////////////////////
38
-    // get the first 5 addresses from server that match query 'France'
39
-    $options = [
40
-        'query' => 'France',
41
-        'page' => 1,
42
-        'per_page' => 10
43
-    ];
44
-    $res = $ab->getAddressesPaginated($options);
45
-    print_r($res);
20
+	$ab = new AddressBook();
21
+
22
+	/////////////////////////////////////////////
23
+	// get the first page of addresses from server
24
+	$res = $ab->getAddressesPaginated();
25
+	print_r($res);
26
+
27
+	/////////////////////////////////////////////
28
+	// get only the 5 fields of addresses from server
29
+	$options = [
30
+		'fields' => "address_id, address_1, first_name, last_name, address_city",
31
+		'page' => 2,
32
+		'per_page' => 10
33
+	];
34
+	$res = $ab->getAddressesPaginated($options);
35
+	print_r($res);
36
+
37
+	/////////////////////////////////////////////
38
+	// get the first 5 addresses from server that match query 'France'
39
+	$options = [
40
+		'query' => 'France',
41
+		'page' => 1,
42
+		'per_page' => 10
43
+	];
44
+	$res = $ab->getAddressesPaginated($options);
45
+	print_r($res);
46 46
 } catch (ApiError $e) {
47
-    echo $e->getCode() . PHP_EOL;
48
-    echo $e->getMessage() . PHP_EOL;
47
+	echo $e->getCode() . PHP_EOL;
48
+	echo $e->getMessage() . PHP_EOL;
49 49
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
     $res = $ab->getAddressesPaginated($options);
45 45
     print_r($res);
46 46
 } catch (ApiError $e) {
47
-    echo $e->getCode() . PHP_EOL;
48
-    echo $e->getMessage() . PHP_EOL;
47
+    echo $e->getCode().PHP_EOL;
48
+    echo $e->getMessage().PHP_EOL;
49 49
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddresses.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -17,37 +17,37 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
21
-
22
-    /////////////////////////////////////////////
23
-    // get the first 5 addresses
24
-    $options = [
25
-        'limit' => 5,
26
-        'offset' => 0
27
-    ];
28
-    $res = $ab->getAddresses($options);
29
-    print_r($res);
30
-
31
-    /////////////////////////////////////////////
32
-    // get only the 5 fields of address
33
-    $options = [
34
-        'fields' => "address_id, address_1, first_name, last_name, address_city",
35
-        'limit' => 5,
36
-        'offset' => 0
37
-    ];
38
-    $res = $ab->getAddresses($options);
39
-    print_r($res);
40
-
41
-    /////////////////////////////////////////////
42
-    // get the first 5 addresses from the server that match quere 'France'
43
-    $options = [
44
-        'query' => 'France',
45
-        'limit' => 10,
46
-        'offset' => 0
47
-    ];
48
-    $res = $ab->getAddresses($options);
49
-    print_r($res);
20
+	$ab = new AddressBook();
21
+
22
+	/////////////////////////////////////////////
23
+	// get the first 5 addresses
24
+	$options = [
25
+		'limit' => 5,
26
+		'offset' => 0
27
+	];
28
+	$res = $ab->getAddresses($options);
29
+	print_r($res);
30
+
31
+	/////////////////////////////////////////////
32
+	// get only the 5 fields of address
33
+	$options = [
34
+		'fields' => "address_id, address_1, first_name, last_name, address_city",
35
+		'limit' => 5,
36
+		'offset' => 0
37
+	];
38
+	$res = $ab->getAddresses($options);
39
+	print_r($res);
40
+
41
+	/////////////////////////////////////////////
42
+	// get the first 5 addresses from the server that match quere 'France'
43
+	$options = [
44
+		'query' => 'France',
45
+		'limit' => 10,
46
+		'offset' => 0
47
+	];
48
+	$res = $ab->getAddresses($options);
49
+	print_r($res);
50 50
 } catch (ApiError $e) {
51
-    echo $e->getCode() . PHP_EOL;
52
-    echo $e->getMessage() . PHP_EOL;
51
+	echo $e->getCode() . PHP_EOL;
52
+	echo $e->getMessage() . PHP_EOL;
53 53
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
     $res = $ab->getAddresses($options);
49 49
     print_r($res);
50 50
 } catch (ApiError $e) {
51
-    echo $e->getCode() . PHP_EOL;
52
-    echo $e->getMessage() . PHP_EOL;
51
+    echo $e->getCode().PHP_EOL;
52
+    echo $e->getMessage().PHP_EOL;
53 53
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/DeleteAddressesByAreas.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
20
+	$ab = new AddressBook();
21 21
 
22
-    $filter = [
23
-        'query' => 'Tusha',
24
-        'selected_areas' => [[
25
-            'type' => 'circle',
26
-            'value' => [
27
-                'center' => [
28
-                    'lat' => 38.024654,
29
-                    'lng' => 77.338814
30
-                ],
31
-                'distance' => 10000
32
-            ]
33
-        ]]
34
-    ];
35
-    $res = $ab->deleteAddressesByAreas($filter);
36
-    print_r($res);
22
+	$filter = [
23
+		'query' => 'Tusha',
24
+		'selected_areas' => [[
25
+			'type' => 'circle',
26
+			'value' => [
27
+				'center' => [
28
+					'lat' => 38.024654,
29
+					'lng' => 77.338814
30
+				],
31
+				'distance' => 10000
32
+			]
33
+		]]
34
+	];
35
+	$res = $ab->deleteAddressesByAreas($filter);
36
+	print_r($res);
37 37
 } catch (ApiError $e) {
38
-    echo $e->getCode() . PHP_EOL;
39
-    echo $e->getMessage() . PHP_EOL;
38
+	echo $e->getCode() . PHP_EOL;
39
+	echo $e->getMessage() . PHP_EOL;
40 40
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 namespace Route4Me;
9 9
 
10
-$root = realpath(dirname(__FILE__) . '/../../');
11
-require $root . '/vendor/autoload.php';
10
+$root = realpath(dirname(__FILE__).'/../../');
11
+require $root.'/vendor/autoload.php';
12 12
 
13 13
 use Route4Me\Exception\ApiError;
14 14
 use Route4Me\V5\AddressBook\AddressBook;
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
     $res = $ab->deleteAddressesByAreas($filter);
36 36
     print_r($res);
37 37
 } catch (ApiError $e) {
38
-    echo $e->getCode() . PHP_EOL;
39
-    echo $e->getMessage() . PHP_EOL;
38
+    echo $e->getCode().PHP_EOL;
39
+    echo $e->getMessage().PHP_EOL;
40 40
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/UpdateAddressesByIds.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -18,28 +18,28 @@
 block discarded – undo
18 18
 Route4Me::setApiKey(Constants::API_KEY);
19 19
 
20 20
 try {
21
-    $ab = new AddressBook();
22
-
23
-    /////////////////////////////////////////////
24
-    // update adress's by array
25
-    $addressIds = [96121941, 96122542, 96100576];
26
-    $params = [
27
-        'service_time' => 16,
28
-        'last_name' => 'Grigoriani V',
29
-        'address_phone_number' => '+1234567890'
30
-    ];
31
-    $res = $ab->updateAddressesByIds($addressIds, $params);
32
-    print_r($res);
33
-
34
-    /////////////////////////////////////////////
35
-    // update adress's by object UpdateAddress
36
-    $addressIds = [96121941, 96122542, 96100576];
37
-    $address = new UpdateAddress(17);
38
-    $address->last_name = 'Grigoriani VI';
39
-    $address->address_phone_number = '+0987654321';
40
-    $res = $ab->updateAddressesByIds($addressIds, $address);
41
-    print_r($res);
21
+	$ab = new AddressBook();
22
+
23
+	/////////////////////////////////////////////
24
+	// update adress's by array
25
+	$addressIds = [96121941, 96122542, 96100576];
26
+	$params = [
27
+		'service_time' => 16,
28
+		'last_name' => 'Grigoriani V',
29
+		'address_phone_number' => '+1234567890'
30
+	];
31
+	$res = $ab->updateAddressesByIds($addressIds, $params);
32
+	print_r($res);
33
+
34
+	/////////////////////////////////////////////
35
+	// update adress's by object UpdateAddress
36
+	$addressIds = [96121941, 96122542, 96100576];
37
+	$address = new UpdateAddress(17);
38
+	$address->last_name = 'Grigoriani VI';
39
+	$address->address_phone_number = '+0987654321';
40
+	$res = $ab->updateAddressesByIds($addressIds, $address);
41
+	print_r($res);
42 42
 } catch (ApiError $e) {
43
-    echo $e->getCode() . PHP_EOL;
44
-    echo $e->getMessage() . PHP_EOL;
43
+	echo $e->getCode() . PHP_EOL;
44
+	echo $e->getMessage() . PHP_EOL;
45 45
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
     $res = $ab->updateAddressesByIds($addressIds, $address);
41 41
     print_r($res);
42 42
 } catch (ApiError $e) {
43
-    echo $e->getCode() . PHP_EOL;
44
-    echo $e->getMessage() . PHP_EOL;
43
+    echo $e->getCode().PHP_EOL;
44
+    echo $e->getMessage().PHP_EOL;
45 45
 }
Please login to merge, or discard this patch.