wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/Dumpers/RdfDumpGenerator.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method generateDumpForEntityId has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function generateDumpForEntityId( EntityId $entityId ): ?string {
        try {
            $entityRevision = $this->entityRevisionLookup->getEntityRevision( $entityId );

            if ( !$entityRevision ) {
Severity: Minor
Found in repo/includes/Dumpers/RdfDumpGenerator.php - About 1 hr to fix

    Method createDumpGenerator has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            string $format,
            $output,
            string $flavor,
            EntityRevisionLookup $entityRevisionLookup,
            EntityPrefetcher $entityPrefetcher,
    Severity: Major
    Found in repo/includes/Dumpers/RdfDumpGenerator.php - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status