$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 );
}
}
-$maintClass = 'RemoveInvalidEmails';
+$maintClass = RemoveInvalidEmails::class;
require_once RUN_MAINTENANCE_IF_MAIN;