wikimedia/mediawiki-extensions-Wikibase

View on GitHub
lib/includes/Store/Sql/Terms/FindUnusedTermTrait.php

Summary

Maintainability
A
1 hr
Test Coverage

Method findActuallyUnusedTermInLangIds has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function findActuallyUnusedTermInLangIds( array $termInLangIds, IDatabase $dbw ) {
        $unusedTermInLangIds = [];
        foreach ( $termInLangIds as $termInLangId ) {
            // Note: Not batching here is intentional to avoid deadlocks (see method comment)
            $usedInProperties = $dbw->newSelectQueryBuilder()
Severity: Minor
Found in lib/includes/Store/Sql/Terms/FindUnusedTermTrait.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status