dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert all array() syntax to []
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiFormatPhp.php
diff --git
a/includes/api/ApiFormatPhp.php
b/includes/api/ApiFormatPhp.php
index
f5f2504
..
d111af5
100644
(file)
--- a/
includes/api/ApiFormatPhp.php
+++ b/
includes/api/ApiFormatPhp.php
@@
-39,19
+39,19
@@
class ApiFormatPhp extends ApiFormatBase {
switch ( $params['formatversion'] ) {
case 1:
switch ( $params['formatversion'] ) {
case 1:
- $transforms =
array(
- 'BC' =>
array()
,
- 'Types' =>
array()
,
+ $transforms =
[
+ 'BC' =>
[]
,
+ 'Types' =>
[]
,
'Strip' => 'all',
'Strip' => 'all',
-
)
;
+
]
;
break;
case 2:
case 'latest':
break;
case 2:
case 'latest':
- $transforms =
array(
- 'Types' =>
array()
,
+ $transforms =
[
+ 'Types' =>
[]
,
'Strip' => 'all',
'Strip' => 'all',
-
)
;
+
]
;
break;
default:
break;
default:
@@
-78,13
+78,13
@@
class ApiFormatPhp extends ApiFormatBase {
}
public function getAllowedParams() {
}
public function getAllowedParams() {
- $ret = parent::getAllowedParams() +
array(
- 'formatversion' =>
array(
- ApiBase::PARAM_TYPE =>
array( 1, 2, 'latest' )
,
+ $ret = parent::getAllowedParams() +
[
+ 'formatversion' =>
[
+ ApiBase::PARAM_TYPE =>
[ 1, 2, 'latest' ]
,
ApiBase::PARAM_DFLT => 1,
ApiBase::PARAM_HELP_MSG => 'apihelp-php-param-formatversion',
ApiBase::PARAM_DFLT => 1,
ApiBase::PARAM_HELP_MSG => 'apihelp-php-param-formatversion',
-
)
,
-
)
;
+
]
,
+
]
;
return $ret;
}
}
return $ret;
}
}