wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

        ApiMain $mainModule,
        string $moduleName,
        EntityIdParser $idParser,
        ApiErrorReporter $errorReporter,
        ItemRedirectCreationInteractor $interactor,
Severity: Major
Found in repo/includes/Api/CreateRedirect.php - About 50 mins to fix

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

            ApiMain $apiMain,
            string $moduleName,
            PermissionManager $permissionManager,
            ApiHelperFactory $apiHelperFactory,
            EntityIdParser $entityIdParser,
    Severity: Major
    Found in repo/includes/Api/CreateRedirect.php - About 50 mins to fix

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

          private function createRedirect( EntityId $fromId, EntityId $toId, bool $bot, ApiResult $result, array $params ): void {
      Severity: Minor
      Found in repo/includes/Api/CreateRedirect.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status