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
Merge "RCLFilters: display target page as a title"
[lhc/web/wiklou.git]
/
includes
/
export
/
DumpNamespaceFilter.php
diff --git
a/includes/export/DumpNamespaceFilter.php
b/includes/export/DumpNamespaceFilter.php
index
e8d4428
..
2b71db0
100644
(file)
--- a/
includes/export/DumpNamespaceFilter.php
+++ b/
includes/export/DumpNamespaceFilter.php
@@
-31,17
+31,17
@@
class DumpNamespaceFilter extends DumpFilter {
public $invert = false;
/** @var array */
public $invert = false;
/** @var array */
- public $namespaces =
array()
;
+ public $namespaces =
[]
;
/**
/**
- * @param DumpOutput $sink
+ * @param DumpOutput
&
$sink
* @param array $param
* @throws MWException
*/
function __construct( &$sink, $param ) {
parent::__construct( $sink );
* @param array $param
* @throws MWException
*/
function __construct( &$sink, $param ) {
parent::__construct( $sink );
- $constants =
array(
+ $constants =
[
"NS_MAIN" => NS_MAIN,
"NS_TALK" => NS_TALK,
"NS_USER" => NS_USER,
"NS_MAIN" => NS_MAIN,
"NS_TALK" => NS_TALK,
"NS_USER" => NS_USER,
@@
-59,7
+59,7
@@
class DumpNamespaceFilter extends DumpFilter {
"NS_HELP" => NS_HELP,
"NS_HELP_TALK" => NS_HELP_TALK,
"NS_CATEGORY" => NS_CATEGORY,
"NS_HELP" => NS_HELP,
"NS_HELP_TALK" => NS_HELP_TALK,
"NS_CATEGORY" => NS_CATEGORY,
- "NS_CATEGORY_TALK" => NS_CATEGORY_TALK
)
;
+ "NS_CATEGORY_TALK" => NS_CATEGORY_TALK
]
;
if ( $param { 0 } == '!' ) {
$this->invert = true;
if ( $param { 0 } == '!' ) {
$this->invert = true;