wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

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

        Article $article,
        IContextSource $context,
        PermissionManager $permissionManager,
        RevisionLookup $revisionLookup,
        AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
Severity: Major
Found in repo/includes/Actions/EditEntityAction.php - About 50 mins to fix

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

            UsageLookup $usageLookup,
            TitleFactory $titleFactory,
            bool $allowLocalShortDesc,
            DescriptionLookup $descriptionLookup,
            LinkBatchFactory $linkBatchFactory,
    Severity: Major
    Found in client/includes/Usage/ImplicitDescriptionUsageLookup.php - About 50 mins to fix

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

              SettingsArray $settings,
              SiteLinkLookup $siteLinkLookup,
              SiteLookup $siteLookup,
              EntityLookup $entityLookup,
              SidebarLinkBadgeDisplay $sidebarLinkBadgeDisplay,
      Severity: Major
      Found in client/includes/Hooks/OtherProjectsSidebarGeneratorFactory.php - About 50 mins to fix

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

                NamespaceChecker $namespaceChecker,
                RepoLinker $repoLinker,
                SiteLinkLookup $siteLinkLookup,
                $siteId,
                UsageLookup $usageLookup,
        Severity: Major
        Found in client/includes/Hooks/InfoActionHookHandler.php - About 50 mins to fix

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

                  RepoLinker $repoLinker,
                  NamespaceChecker $namespaceChecker,
                  RedirectLookup $redirectLookup,
                  UserOptionsManager $userOptionsManager,
                  $siteId,
          Severity: Major
          Found in client/includes/Hooks/EchoNotificationsHandlers.php - About 50 mins to fix

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

                public static function onFormat( &$comment, $pre, $auto, $post, $title, $local, $wikiId = null ) {
            Severity: Major
            Found in client/includes/ClientHooks.php - About 50 mins 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

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

                        ItemId $fromId,
                        ItemId $toId,
                        IContextSource $context,
                        array $ignoreConflicts = [],
                        ?string $summary = null,
                Severity: Major
                Found in repo/includes/Interactors/ItemMergeInteractor.php - About 50 mins to fix

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

                          EntityTitleLookup $titleLookup,
                          LanguageNameLookup $languageNameLookup,
                          SiteLookup $siteLookup,
                          SiteLinkLookup $siteLinkLookup,
                          SiteLinkTargetProvider $siteLinkTargetProvider,
                  Severity: Major
                  Found in repo/includes/Specials/SpecialItemByTitle.php - About 50 mins to fix

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

                            $title,
                            array $tags,
                            SpecialPageCopyrightView $copyrightView,
                            SummaryFormatter $summaryFormatter,
                            EntityTitleLookup $entityTitleLookup,
                    Severity: Major
                    Found in repo/includes/Specials/SpecialModifyEntity.php - About 50 mins to fix

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

                              ApiMain $mainModule,
                              string $moduleName,
                              FingerprintChangeOpFactory $termChangeOpFactory,
                              IBufferingStatsdDataFactory $stats,
                              bool $federatedPropertiesEnabled,
                      Severity: Major
                      Found in repo/includes/Api/SetAliases.php - About 50 mins to fix

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

                                AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                                EntityIdParser $idParser,
                                EntityTitleLookup $titleLookup,
                                ExceptionLocalizer $exceptionLocalizer,
                                ItemMergeInteractor $interactor,
                        Severity: Major
                        Found in repo/includes/Specials/SpecialMergeItems.php - About 50 mins to fix

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

                                  $out,
                                  EntityRevisionLookup $lookup,
                                  Serializer $entitySerializer,
                                  EntityPrefetcher $entityPrefetcher,
                                  PropertyDataTypeLookup $dataTypeLookup,
                          Severity: Major
                          Found in repo/includes/Dumpers/JsonDumpGenerator.php - About 50 mins to fix

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

                                    $title,
                                    $restriction,
                                    array $tags,
                                    SpecialPageCopyrightView $copyrightView,
                                    SummaryFormatter $summaryFormatter,
                            Severity: Major
                            Found in repo/includes/Specials/SpecialWikibaseRepoPage.php - About 50 mins to fix

                              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 factory has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          ApiMain $mainModule,
                                          string $moduleName,
                                          ApiHelperFactory $apiHelperFactory,
                                          SettingsArray $repoSettings,
                                          SiteLinkGlobalIdentifiersProvider $siteLinkGlobalIdentifiersProvider,
                                  Severity: Major
                                  Found in repo/includes/Api/LinkTitles.php - About 50 mins to fix

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

                                            ApiMain $mainModule,
                                            string $moduleName,
                                            EntityIdParser $entityIdParser,
                                            EntityIdFormatterFactory $entityIdFormatterFactory,
                                            ResultBuilder $resultBuilder,
                                    Severity: Major
                                    Found in repo/includes/Api/FormatEntities.php - About 50 mins to fix

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

                                              EntityLookup $entityLookup,
                                              EntityStore $entityStore,
                                              SummaryFormatter $summaryFormatter,
                                              LoggerInterface $logger,
                                              SiteLookup $siteLookup,
                                      Severity: Major
                                      Found in repo/includes/UpdateRepo/UpdateRepoOnMoveJob.php - About 50 mins to fix

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

                                                ItemId $fromId,
                                                ItemId $toId,
                                                array $ignoreConflicts,
                                                ?string $summary,
                                                bool $bot,
                                        Severity: Major
                                        Found in repo/includes/Api/MergeItems.php - About 50 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language