lib/includes/Store/Sql/Terms/FindUnusedTermTrait.php
Method findActuallyUnusedTermInLangIds
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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()