Use addDescription() instead of accessing guts directly

Change-Id: I767cbb9969c90b645e6a94ee49b2fe2352001fd8
This commit is contained in:
Max Semenik 2019-03-26 22:07:48 -07:00
parent 0385a6fa23
commit f055f30f86
6 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ class BackfillUnreadWikis extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Backfill echo_unread_wikis table";
$this->addDescription( "Backfill echo_unread_wikis table" );
$this->addOption( 'rebuild', 'Only recompute already-existing rows' );
$this->setBatchSize( 300 );
$this->requireExtension( 'Echo' );

View file

@ -34,7 +34,7 @@ class GenerateSampleNotifications extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Generate sample notifications";
$this->addDescription( "Generate sample notifications" );
$this->addOption(
'force',

View file

@ -19,7 +19,7 @@ class ProcessEchoEmailBatch extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Process email digest";
$this->addDescription( "Process email digest" );
$this->addOption(
"ignoreConfiguredSchedule",

View file

@ -19,7 +19,7 @@ class RemoveInvalidNotification extends Maintenance {
protected $invalidEventType = [ 'article-linked' ];
public function __construct() {
$this->mDescription = "Removes invalid notifications from the database.";
$this->addDescription( "Removes invalid notifications from the database." );
$this->requireExtension( 'Echo' );
}

View file

@ -18,7 +18,7 @@ class RemoveOrphanedEvents extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Remove rows from echo_event that don't have corresponding rows in echo_notification";
$this->addDescription( "Remove rows from echo_event that don't have corresponding rows in echo_notification" );
$this->setBatchSize( 500 );

View file

@ -13,7 +13,7 @@ require_once getenv( 'MW_INSTALL_PATH' ) !== false
class GenerateEchoAutoload extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = 'Generates Echo autoload data';
$this->addDescription( 'Generates Echo autoload data' );
}
public function execute() {