maintenance: Minor cleanup

* Call non static functions non statically
* Remove unused getConfig() call

Change-Id: I36d618c1f070b303c6d50966b23979d31fa8266a
This commit is contained in:
Reedy 2024-10-08 21:40:00 +01:00
parent f80076f5aa
commit 61152ae1ac
2 changed files with 2 additions and 4 deletions

View file

@ -39,14 +39,12 @@ class MigrateNamespace extends LoggedUpdateMaintenance {
* @inheritDoc
*/
protected function doDBUpdates() {
$config = $this->getConfig();
$this->output( "Running linter migrate namespace function, this may take a while\n" );
$batchSize = $this->getBatchSize();
$sleep = (int)$this->getOption( 'sleep', 1 );
$dbw = self::getDB( DB_PRIMARY );
$dbw = $this->getDB( DB_PRIMARY );
if ( !$dbw->fieldExists( 'linter', 'linter_namespace', __METHOD__ ) ) {
$this->output( "Run update.php to add linter_namespace field to the linter table.\n" );
return false;

View file

@ -43,7 +43,7 @@ class MigrateTagTemplate extends LoggedUpdateMaintenance {
$batchSize = $this->getBatchSize();
$sleep = (int)$this->getOption( 'sleep', 1 );
$dbw = self::getDB( DB_PRIMARY );
$dbw = $this->getDB( DB_PRIMARY );
if ( !$dbw->fieldExists( 'linter', 'linter_template', __METHOD__ ) ) {
$this->output( "Run update.php to add linter_tag and linter_template fields to the linter table.\n" );
return false;