wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 2,096 of 2,096 total issues

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

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

              ApiMain $mainModule,
              string $moduleName,
              ChangeOpFactoryProvider $changeOpFactoryProvider,
              SettingsArray $repoSettings,
              SiteLinkBadgeChangeOpSerializationValidator $siteLinkBadgeChangeOpSerializationValidator,
      Severity: Major
      Found in repo/includes/Api/SetSiteLink.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/UpdateRepoOnDeleteJob.php - About 50 mins to fix

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

                  TermBuffer $buffer,
                  EntityIdLookup $idLookup,
                  TitleFactory $titleFactory,
                  array $termTypes,
                  LanguageFallbackChainFactory $languageFallbackChainFactory,
          Severity: Major
          Found in repo/includes/Hooks/LabelPrefetchHookHandler.php - About 50 mins to fix

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

                    RdfWriter $writer,
                    $propertyValueNamespace,
                    $propertyValueLName,
                    $dataType,
                    $snakNamespace,
            Severity: Major
            Found in repo/includes/Rdf/Values/ComplexValueRdfHelper.php - About 50 mins to fix

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

                      $wikiPage,
                      $user,
                      $reason,
                      $id,
                      $content,
              Severity: Major
              Found in repo/includes/Hooks/EntityDataPurger.php - About 50 mins to fix

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

                        Item $fromItem,
                        Item $toItem,
                        array $ignoreConflicts,
                        EntityConstraintProvider $constraintProvider,
                        ChangeOpFactoryProvider $changeOpFactoryProvider,
                Severity: Major
                Found in repo/includes/ChangeOp/ChangeOpsMerge.php - About 50 mins to fix

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

                          WebRequest $request,
                          EntityId $requestId,
                          int $requestRevision,
                          WebResponse $response,
                          string $data,
                  Severity: Major
                  Found in repo/includes/LinkedData/EntityDataRequestHandler.php - About 50 mins to fix

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

                            PrefetchingTermLookup $prefetchingLookup,
                            PropertyDataTypeLookup $dataTypeLookup,
                            ContentLanguages $termLanguages,
                            RdfVocabulary $vocabulary,
                            RdfWriter $writer,
                    Severity: Major
                    Found in repo/includes/Rdf/PropertyStubRdfBuilder.php - About 50 mins to fix

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

                              &$title,
                              &$titleSnippet,
                              $result,
                              $terms,
                              $specialSearch,
                      Severity: Major
                      Found in repo/includes/Hooks/ShowSearchHitHandler.php - About 50 mins to fix

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

                                TitleFactory $titleFactory,
                                EntityIdLookup $entityIdLookup,
                                LanguageFallbackChainFactory $languageFallbackChainFactory,
                                LoggerInterface $logger,
                                PrefetchingTermLookup $prefetchingTermLookup,
                        Severity: Major
                        Found in repo/includes/Hooks/LabelPrefetchHookHandler.php - About 50 mins to fix

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

                                  RdfWriter $writer,
                                  $propertyValueNamespace,
                                  $propertyValueLName,
                                  $dataType,
                                  $valueNamespace,
                          Severity: Major
                          Found in repo/includes/Rdf/Values/QuantityRdfBuilder.php - About 50 mins to fix

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

                                public function onArticleDeleteComplete( $wikiPage, $user, $reason, $id, $content, $logEntry, $archivedRevisionCount ) {
                            Severity: Major
                            Found in repo/includes/Hooks/DeleteDispatcher.php - About 50 mins to fix

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

                                      string $propertyId,
                                      string $languageCode,
                                      string $label,
                                      array $editTags,
                                      bool $isBot,

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

                                        TemplateFactory $templateFactory,
                                        CacheableEntityTermsView $entityTermsView,
                                        LanguageDirectionalityLookup $languageDirectionalityLookup,
                                        StatementSectionsView $statementSectionsView,
                                        DataTypeFactory $dataTypeFactory,
                                Severity: Major
                                Found in view/src/PropertyView.php - About 50 mins to fix

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

                                          string $itemId,
                                          string $languageCode,
                                          string $description,
                                          array $editTags,
                                          bool $isBot,

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

                                            LabelsSyntaxValidator $labelsSyntaxValidator,
                                            ItemLabelsContentsValidator $labelsContentsValidator,
                                            DescriptionsSyntaxValidator $descriptionsSyntaxValidator,
                                            ItemDescriptionsContentsValidator $descriptionsContentsValidator,
                                            AliasesValidator $aliasesValidator,
                                    Severity: Major
                                    Found in repo/rest-api/src/Application/Validation/ItemValidator.php - About 50 mins to fix

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

                                              string $propertyId,
                                              string $statementId,
                                              array $patch,
                                              array $editTags,
                                              bool $isBot,

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

                                                string $propertyId,
                                                string $statementId,
                                                array $patch,
                                                array $editTags,
                                                bool $isBot,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language