wikimedia/mediawiki-extensions-Translate

View on GitHub
src/SchemaHookHandler.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method onLoadExtensionSchemaUpdates has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function onLoadExtensionSchemaUpdates( $updater ) {
        $dir = dirname( __DIR__, 1 ) . '/sql';
        $dbType = $updater->getDB()->getType();

        if ( $dbType === 'mysql' || $dbType === 'sqlite' ) {
Severity: Major
Found in src/SchemaHookHandler.php - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status