wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

Method acquireAndInsertTerms has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function acquireAndInsertTerms( Int32EntityId $entityId, Fingerprint $fingerprint ): array {
        $entityNumericId = $entityId->getNumericId();

        $dbw = $this->getDbw();
        $queryBuilder = $dbw->newSelectQueryBuilder()
Severity: Major
Found in lib/includes/Store/Sql/Terms/DatabaseTermStoreWriterBase.php - About 2 hrs to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            RepoDomainDb $repoDb, JobQueueGroup $jobQueueGroup, TermInLangIdsAcquirer $termInLangIdsAcquirer,
            TermInLangIdsResolver $termInLangIdsResolver, StringNormalizer $stringNormalizer
    Severity: Minor
    Found in lib/includes/Store/Sql/Terms/DatabaseTermStoreWriterBase.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status