$this->addOption( 'commit', 'Whether to actually update the database', false, false );
$this->setBatchSize( 500 );
}
+
public function execute() {
$this->commit = $this->hasOption( 'commit' );
$dbr = $this->getDB( DB_REPLICA );
'user_email_authenticated IS NULL'
],
__METHOD__,
- [ 'LIMIT' => $this->mBatchSize ]
+ [ 'LIMIT' => $this->getBatchSize() ]
);
$count = $rows->numRows();
$badIds = [];
}
}
-$maintClass = 'RemoveInvalidEmails';
+$maintClass = RemoveInvalidEmails::class;
require_once RUN_MAINTENANCE_IF_MAIN;