File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
'tag5 ' => 'https://httpbin.org/status/503 ' ,
10
10
];
11
11
12
- $ ids_to_tags = array () ;
12
+ $ ids_to_tags = [] ;
13
13
14
14
$ multi_curl = new MultiCurl ();
15
15
Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ public function diagnose($return = false)
1325
1325
if ($ this ->attempts === 0 ) {
1326
1326
echo 'No HTTP requests have been made. ' . "\n" ;
1327
1327
} else {
1328
- $ request_types = array (
1328
+ $ request_types = [
1329
1329
'DELETE ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'DELETE ' ,
1330
1330
'GET ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'GET ' || $ this ->getOpt (CURLOPT_HTTPGET ),
1331
1331
'HEAD ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'HEAD ' ,
@@ -1334,7 +1334,7 @@ public function diagnose($return = false)
1334
1334
'POST ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'POST ' || $ this ->getOpt (CURLOPT_POST ),
1335
1335
'PUT ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'PUT ' ,
1336
1336
'SEARCH ' => $ this ->getOpt (CURLOPT_CUSTOMREQUEST ) === 'SEARCH ' ,
1337
- ) ;
1337
+ ] ;
1338
1338
$ request_method = '' ;
1339
1339
foreach ($ request_types as $ http_method_name => $ http_method_used ) {
1340
1340
if ($ http_method_used ) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function testCaseInsensitiveArrayIsArrayAssoc()
33
33
34
34
public function testArrayFlattenMultidimArray ()
35
35
{
36
- $ data = array (
36
+ $ data = [
37
37
'key-1 ' => 'value-1 ' ,
38
38
'key-2 ' => 'value-2 ' ,
39
39
'key-3 ' => [
@@ -44,7 +44,7 @@ public function testArrayFlattenMultidimArray()
44
44
'nested-more-key-2 ' => 'nested-more-value-2 ' ,
45
45
],
46
46
],
47
- ) ;
47
+ ] ;
48
48
49
49
$ this ->assertEquals ([
50
50
'key-1 ' => 'value-1 ' ,
You can’t perform that action at this time.
0 commit comments