X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fexport%2FDumpNamespaceFilter.php;h=2b71db00f2a37e3c8221e60f1edce0f3edf4c202;hb=1c7e8b32b30522d0d167c3da21df63ebff0bb6ed;hp=e8d4428009e382d204f3a70b0961170ef00a6b85;hpb=0e289eae349ce35d03af3e8fc10e9ad2e0119f26;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/export/DumpNamespaceFilter.php b/includes/export/DumpNamespaceFilter.php index e8d4428009..2b71db00f2 100644 --- a/includes/export/DumpNamespaceFilter.php +++ b/includes/export/DumpNamespaceFilter.php @@ -31,17 +31,17 @@ class DumpNamespaceFilter extends DumpFilter { 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 ); - $constants = array( + $constants = [ "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_CATEGORY_TALK" => NS_CATEGORY_TALK ); + "NS_CATEGORY_TALK" => NS_CATEGORY_TALK ]; if ( $param { 0 } == '!' ) { $this->invert = true;