wikimedia/mediawiki-extensions-Wikibase

View on GitHub
data-access/src/SingleEntitySourceServices.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

        EntityIdParser $entityIdParser,
        EntityIdComposer $entityIdComposer,
        Deserializer $dataValueDeserializer,
        NameTableStore $slotRoleStore,
        DataAccessSettings $dataAccessSettings,
Severity: Major
Found in data-access/src/SingleEntitySourceServices.php - About 1 hr to fix

    Method getEntityMetaDataAccessor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function getEntityMetaDataAccessor(): PrefetchingWikiPageEntityMetaDataAccessor {
            if ( $this->entityMetaDataAccessor === null ) {
                $entityNamespaceLookup = new EntityNamespaceLookup(
                    $this->entitySource->getEntityNamespaceIds(),
                    $this->entitySource->getEntitySlotNames()
    Severity: Minor
    Found in data-access/src/SingleEntitySourceServices.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status