/**
* Dump output filter to include or exclude pages in a given set of namespaces.
*
- * Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
+ * Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
* https://www.mediawiki.org/
*
* This program is free software; you can redistribute it and/or modify
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,
"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;