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 ( ce7ad9...c183ba )
by Igor
08:49 queued 18s
created
examples/AddressBook_V5/UpdateAddressesByAreas.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -17,31 +17,31 @@
 block discarded – undo
17 17
 Route4Me::setApiKey(Constants::API_KEY);
18 18
 
19 19
 try {
20
-    $ab = new AddressBook();
21
-
22
-    /////////////////////////////////////////////
23
-    // update adresses in circle aria
24
-    $filter = [
25
-        'query' => "Tusha",
26
-        'bounding_box' => null,
27
-        'selected_areas' => [[
28
-            'type' => 'circle',
29
-            'value' => [
30
-                'center' => [
31
-                    'lat' => 38.024654,
32
-                    'lng' => 77.338814
33
-                ],
34
-                'distance' => 10000
35
-            ]
36
-        ]]
37
-    ];
38
-
39
-    $params = [
40
-        'last_name' => 'Grigoriani VII'
41
-    ];
42
-    $res = $ab->updateAddressesByAreas($filter, $params);
43
-    print_r($res);
20
+	$ab = new AddressBook();
21
+
22
+	/////////////////////////////////////////////
23
+	// update adresses in circle aria
24
+	$filter = [
25
+		'query' => "Tusha",
26
+		'bounding_box' => null,
27
+		'selected_areas' => [[
28
+			'type' => 'circle',
29
+			'value' => [
30
+				'center' => [
31
+					'lat' => 38.024654,
32
+					'lng' => 77.338814
33
+				],
34
+				'distance' => 10000
35
+			]
36
+		]]
37
+	];
38
+
39
+	$params = [
40
+		'last_name' => 'Grigoriani VII'
41
+	];
42
+	$res = $ab->updateAddressesByAreas($filter, $params);
43
+	print_r($res);
44 44
 } catch (ApiError $e) {
45
-    echo $e->getCode() . PHP_EOL;
46
-    echo $e->getMessage() . PHP_EOL;
45
+	echo $e->getCode() . PHP_EOL;
46
+	echo $e->getMessage() . PHP_EOL;
47 47
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/AddMultipleAddresses.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -18,39 +18,39 @@
 block discarded – undo
18 18
 Route4Me::setApiKey(Constants::API_KEY);
19 19
 
20 20
 try {
21
-    $ab = new AddressBook();
22
-
23
-    /////////////////////////////////////////////
24
-    // add 2 adresses from array
25
-    $arr = [[
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 I'
33
-    ], [
34
-        'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514',
35
-        'cached_lat' => 38.024654,
36
-        'cached_lng' => 77.338814,
37
-        'address_stop_type' => 'DELIVERY',
38
-        'address_city' => 'Tbilisi Vah',
39
-        'first_name' => 'Tusha',
40
-        'last_name' => 'Grigoriani II'
41
-    ]];
42
-    $res = $ab->addMultipleAddresses($arr);
43
-    print_r($res);
44
-
45
-    /////////////////////////////////////////////
46
-    // add 2 adresses from Address
47
-    $arr = [
48
-        new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY'),
49
-        new Address('17206 Tbilisi Vah, GEORGIAN, GE, 22515', 38.024654, 77.338814, 'VISIT')
50
-    ];
51
-    $res = $ab->addMultipleAddresses($arr);
52
-    print_r($res);
21
+	$ab = new AddressBook();
22
+
23
+	/////////////////////////////////////////////
24
+	// add 2 adresses from array
25
+	$arr = [[
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 I'
33
+	], [
34
+		'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514',
35
+		'cached_lat' => 38.024654,
36
+		'cached_lng' => 77.338814,
37
+		'address_stop_type' => 'DELIVERY',
38
+		'address_city' => 'Tbilisi Vah',
39
+		'first_name' => 'Tusha',
40
+		'last_name' => 'Grigoriani II'
41
+	]];
42
+	$res = $ab->addMultipleAddresses($arr);
43
+	print_r($res);
44
+
45
+	/////////////////////////////////////////////
46
+	// add 2 adresses from Address
47
+	$arr = [
48
+		new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY'),
49
+		new Address('17206 Tbilisi Vah, GEORGIAN, GE, 22515', 38.024654, 77.338814, 'VISIT')
50
+	];
51
+	$res = $ab->addMultipleAddresses($arr);
52
+	print_r($res);
53 53
 } catch (ApiError $e) {
54
-    echo $e->getCode() . PHP_EOL;
55
-    echo $e->getMessage() . PHP_EOL;
54
+	echo $e->getCode() . PHP_EOL;
55
+	echo $e->getMessage() . PHP_EOL;
56 56
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressesByBodyPayload.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -17,39 +17,39 @@
 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->getAddressesByBodyPayload($options);
29
-    print_r($res);
30
-
31
-    /////////////////////////////////////////////
32
-    // get the first 5 addresses in the selected area from the server
33
-    $options = [
34
-        'filter' => [
35
-            'query' => 'Tusha',
36
-            'selected_areas' => [[
37
-                'type' => 'circle',
38
-                'value' => [
39
-                    'center' => [
40
-                        'lat' => 38.024654,
41
-                        'lng' => 77.338814
42
-                        ],
43
-                    'distance' => 10000
44
-                ]
45
-            ]]
46
-        ],
47
-        'limit' => 5,
48
-        'offset' => 0
49
-    ];
50
-    $res = $ab->getAddressesByBodyPayload($options);
51
-    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->getAddressesByBodyPayload($options);
29
+	print_r($res);
30
+
31
+	/////////////////////////////////////////////
32
+	// get the first 5 addresses in the selected area from the server
33
+	$options = [
34
+		'filter' => [
35
+			'query' => 'Tusha',
36
+			'selected_areas' => [[
37
+				'type' => 'circle',
38
+				'value' => [
39
+					'center' => [
40
+						'lat' => 38.024654,
41
+						'lng' => 77.338814
42
+						],
43
+					'distance' => 10000
44
+				]
45
+			]]
46
+		],
47
+		'limit' => 5,
48
+		'offset' => 0
49
+	];
50
+	$res = $ab->getAddressesByBodyPayload($options);
51
+	print_r($res);
52 52
 } catch (ApiError $e) {
53
-    echo $e->getCode() . PHP_EOL;
54
-    echo $e->getMessage() . PHP_EOL;
53
+	echo $e->getCode() . PHP_EOL;
54
+	echo $e->getMessage() . PHP_EOL;
55 55
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressesDepots.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 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
-    $res = $ab->getAddressesDepots();
22
-    print_r($res);
21
+	$res = $ab->getAddressesDepots();
22
+	print_r($res);
23 23
 } catch (ApiError $e) {
24
-    echo $e->getCode() . PHP_EOL;
25
-    echo $e->getMessage() . PHP_EOL;
24
+	echo $e->getCode() . PHP_EOL;
25
+	echo $e->getMessage() . PHP_EOL;
26 26
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressesAsynchronousJobResult.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 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
-    $jobId = '434A746FF41D5572FB3D76FACB55161E';
21
+	$jobId = '434A746FF41D5572FB3D76FACB55161E';
22 22
 
23
-    $res = $ab->getAddressesAsynchronousJobResult($jobId);
24
-    print_r($res);
23
+	$res = $ab->getAddressesAsynchronousJobResult($jobId);
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/GetAddressCustomFields.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 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
-    $res = $ab->getAddressCustomFields();
22
-    print_r($res);
21
+	$res = $ab->getAddressCustomFields();
22
+	print_r($res);
23 23
 } catch (ApiError $e) {
24
-    echo $e->getCode() . PHP_EOL;
25
-    echo $e->getMessage() . PHP_EOL;
24
+	echo $e->getCode() . PHP_EOL;
25
+	echo $e->getMessage() . PHP_EOL;
26 26
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/UpdateAddressById.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
 Route4Me::setApiKey(Constants::API_KEY);
19 19
 
20 20
 try {
21
-    $ab = new AddressBook();
21
+	$ab = new AddressBook();
22 22
 
23
-    /////////////////////////////////////////////
24
-    // update adress's last_name
25
-    $addressId = 96100576;
26
-    $params = [
27
-        'last_name' => 'Grigoriani III'
28
-    ];
29
-    $res = $ab->updateAddressById($addressId, $params);
30
-    print_r($res);
23
+	/////////////////////////////////////////////
24
+	// update adress's last_name
25
+	$addressId = 96100576;
26
+	$params = [
27
+		'last_name' => 'Grigoriani III'
28
+	];
29
+	$res = $ab->updateAddressById($addressId, $params);
30
+	print_r($res);
31 31
 } catch (ApiError $e) {
32
-    echo $e->getCode() . PHP_EOL;
33
-    echo $e->getMessage() . PHP_EOL;
32
+	echo $e->getCode() . PHP_EOL;
33
+	echo $e->getMessage() . PHP_EOL;
34 34
 }
Please login to merge, or discard this patch.
examples/AddressBook_V5/GetAddressesAsynchronousJobStatus.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 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
-    $jobId = '866BCFF5C3722432BAE58E6731753BC2';
21
+	$jobId = '866BCFF5C3722432BAE58E6731753BC2';
22 22
 
23
-    $res = $ab->getAddressesAsynchronousJobStatus($jobId);
24
-    print_r($res);
23
+	$res = $ab->getAddressesAsynchronousJobStatus($jobId);
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/ExportAddressesByAreaIds.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 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
-    $territoryIds = [96100573, 96100961];
22
-    $filename = 'test_export.csv';
21
+	$territoryIds = [96100573, 96100961];
22
+	$filename = 'test_export.csv';
23 23
 
24
-    $res = $ab->exportAddressesByAreaIds($territoryIds, $filename);
25
-    print_r($res);
24
+	$res = $ab->exportAddressesByAreaIds($territoryIds, $filename);
25
+	print_r($res);
26 26
 } catch (ApiError $e) {
27
-    echo $e->getCode() . PHP_EOL;
28
-    echo $e->getMessage() . PHP_EOL;
27
+	echo $e->getCode() . PHP_EOL;
28
+	echo $e->getMessage() . PHP_EOL;
29 29
 }
Please login to merge, or discard this patch.