wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/Api/QuerySearchEntities.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getAllowedParams has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getAllowedParams(): array {
        return [
            'search' => [
                ParamValidator::PARAM_TYPE => 'string',
                ParamValidator::PARAM_REQUIRED => true,
Severity: Minor
Found in repo/includes/Api/QuerySearchEntities.php - About 1 hr to fix

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

            ApiQuery $apiQuery,
            string $moduleName,
            LinkBatchFactory $linkBatchFactory,
            EntitySearchHelper $entitySearchHelper,
            EntityTitleLookup $titleLookup,
    Severity: Major
    Found in repo/includes/Api/QuerySearchEntities.php - About 1 hr to fix

      Method factory has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              ApiQuery $apiQuery,
              string $moduleName,
              LinkBatchFactory $linkBatchFactory,
              array $enabledEntityTypes,
              array $entitySearchHelperCallbacks,
      Severity: Major
      Found in repo/includes/Api/QuerySearchEntities.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status