class CleanupPreferences extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = 'Clean up hidden preferences, removed preferences, and normalizes values';
+ $this->addDescription(
+ 'Clean up hidden preferences, removed preferences, and normalizes values'
+ );
$this->setBatchSize( 50 );
$this->addOption( 'dry-run', 'Print debug info instead of actually deleting' );
$this->addOption( 'hidden', 'Drop hidden preferences ($wgHiddenPrefs)' );
public function __construct() {
parent::__construct();
- $this->mDescription = "Deletes local password for users.";
+ $this->addDescription( "Deletes local password for users." );
$this->setBatchSize( 1000 );
$this->addOption( 'user', 'If specified, only checks the given user', false, true );
public function __construct() {
parent::__construct();
- $this->mDescription = 'Create a specification for message parsing ini JSON format';
+ $this->addDescription( 'Create a specification for message parsing ini JSON format' );
// add any other options here
}