wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

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

        $localSiteId,
        SiteLinksForDisplayLookup $siteLinksForDisplayLookup,
        SiteLookup $siteLookup,
        SidebarLinkBadgeDisplay $sidebarLinkBadgeDisplay,
        array $siteIdsToOutput
Severity: Minor
Found in client/includes/Hooks/OtherProjectsSidebarGenerator.php - About 35 mins to fix

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

            EntityIdParser $idParser,
            SessionConsistentConnectionManager $connectionManager,
            array $disabledUsageAspects,
            int $entityUsagePerPageLimit,
            int $addEntityUsagesBatchSize = 500
    Severity: Minor
    Found in client/includes/Usage/Sql/SqlUsageTracker.php - About 35 mins to fix

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

              string $lang,
              string $text,
              int $termTypeId,
              bool $firstMatchOnly = false,
              array $filterOnEntityIds = []
      Severity: Minor
      Found in repo/includes/Store/Sql/Terms/DatabaseTermsCollisionDetector.php - About 35 mins to fix

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

                EntityIdParser $idParser,
                ?IDatabase $writeConnection,
                int $batchSize = 100,
                ?string $tableName = null,
                int $addUsagesBatchSize = 500
        Severity: Minor
        Found in client/includes/Usage/Sql/EntityUsageTable.php - About 35 mins to fix

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

                  array $entityDiffVisualizerInstantiators,
                  ClaimDiffer $claimDiffer,
                  SiteLookup $siteLookup,
                  EntityIdFormatterFactory $entityIdFormatterFactory,
                  OutputFormatSnakFormatterFactory $snakFormatterFactory
          Severity: Minor
          Found in repo/includes/Diff/EntityDiffVisualizerFactory.php - About 35 mins to fix

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

                    string $text,
                    string $languageCode,
                    string $entityType,
                    int $limit,
                    bool $strictLanguage
            Severity: Minor
            Found in repo/includes/FederatedProperties/ApiEntitySearchHelper.php - About 35 mins to fix

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

                  public function onSearchDataForIndex( &$fields, $handler, $page, $output, $engine ): void {
              Severity: Minor
              Found in client/includes/Hooks/TrivialHookHandler.php - About 35 mins to fix

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

                        EntityIdParser $entityIdParser,
                        string $langLinkSiteGroup,
                        NamespaceChecker $namespaceChecker,
                        RepoLinker $repoLinker,
                        SettingsArray $clientSettings
                Severity: Minor
                Found in client/includes/Hooks/SkinAfterPortletHandler.php - About 35 mins to fix

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

                          array $path,
                          Diff $diff,
                          SiteLookup $siteLookup,
                          EntityIdFormatter $entityIdFormatter,
                          MessageLocalizer $messageLocalizer
                  Severity: Minor
                  Found in repo/includes/Diff/SiteLinkDiffView.php - About 35 mins to fix

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

                            Title $title,
                            $revisionTimestamp,
                            $entityConceptUri,
                            File $imageFile = null,
                            $description = null
                    Severity: Minor
                    Found in client/includes/Hooks/SkinAfterBottomScriptsHandler.php - About 35 mins to fix

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

                              User $user,
                              array $actions,
                              Title $title,
                              $entityType,
                              $rigor = PermissionManager::RIGOR_SECURE
                      Severity: Minor
                      Found in repo/includes/Store/WikiPageEntityStorePermissionChecker.php - About 35 mins to fix

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

                                RepoDomainDb $db,
                                EntityIdComposer $entityIdComposer,
                                $tableName,
                                $batchSize,
                                $verbosity = 'standard'
                        Severity: Minor
                        Found in repo/includes/Store/Sql/ChangesSubscriptionTableBuilder.php - About 35 mins to fix

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

                                  DataTypeFactory $dataTypeFactory,
                                  PropertyInfoLookup $propertyInfoLookup,
                                  FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
                                  EntityIdFormatterFactory $entityIdFormatterFactory,
                                  EntityTitleLookup $titleLookup
                          Severity: Minor
                          Found in repo/includes/Specials/SpecialListProperties.php - About 35 mins to fix

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

                                    ApiBase $apiModule,
                                    ResultBuilder $resultBuilder,
                                    EntityByLinkedTitleLookup $entityByLinkedTitleLookup,
                                    SiteLookup $siteLookup,
                                    StringNormalizer $stringNormalizer
                            Severity: Minor
                            Found in repo/includes/Api/EntityByTitleHelper.php - About 35 mins to fix

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

                                      ApiMain $mainModule,
                                      string $moduleName,
                                      ChangeOpFactoryProvider $changeOpFactoryProvider,
                                      EntityFactory $entityFactory,
                                      SettingsArray $repoSettings
                              Severity: Minor
                              Found in repo/includes/Api/SetLabel.php - About 35 mins to fix

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

                                        SiteLookup $siteLookup,
                                        SiteLinkLookup $siteLinkLookup,
                                        EntityRedirectTargetLookup $redirectLookup,
                                        EntityIdParser $idParser,
                                        EntityLookup $entityLookup
                                Severity: Minor
                                Found in repo/includes/Specials/SpecialGoToLinkedPage.php - About 35 mins to fix

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

                                      private function setSiteLink( EntityDocument $item, $siteId, $pageName, array $badgeIds, Summary &$summary = null ) {
                                  Severity: Minor
                                  Found in repo/includes/Specials/SpecialSetSiteLink.php - About 35 mins to fix

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

                                            AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                                            EntityIdParser $idParser,
                                            ExceptionLocalizer $exceptionLocalizer,
                                            ItemRedirectCreationInteractor $interactor,
                                            TokenCheckInteractor $tokenCheck
                                    Severity: Minor
                                    Found in repo/includes/Specials/SpecialRedirectEntity.php - About 35 mins to fix

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

                                              Item $item,
                                              FormatableSummary $summary,
                                              IContextSource $context,
                                              bool $bot,
                                              array $tags
                                      Severity: Minor
                                      Found in repo/includes/Interactors/ItemMergeInteractor.php - About 35 mins to fix

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

                                                EntityRevision $fromEntityRevision,
                                                EntityRevision $toEntityRevision,
                                                ?UserIdentity $savedTempUser,
                                                IContextSource $context,
                                                bool $redirected = null
                                        Severity: Minor
                                        Found in repo/includes/Interactors/ItemMergeStatus.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language