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

        ?EntityId $entityId,
        string $languageCode,
        array $oldAliases,
        array $newAliases,
        bool $isEntityChanged = false
Severity: Minor
Found in repo/includes/ChangeOp/ChangeOpAliasesResult.php - About 35 mins to fix

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

            ?EntityId $entityId,
            string $languageCode,
            ?string $oldDescription,
            ?string $newDescription,
            bool $isEntityChanged = false
    Severity: Minor
    Found in repo/includes/ChangeOp/ChangeOpDescriptionResult.php - About 35 mins to fix

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

              LanguageFallbackChainFactory $languageFallbackChainFactory,
              LinkTargetEntityIdLookup $linkTargetEntityIdLookup,
              LoggerInterface $logger,
              PrefetchingTermLookup $prefetchingTermLookup,
              SettingsArray $repoSettings
      Severity: Minor
      Found in repo/includes/Hooks/PageHistoryPagerHookHandler.php - About 35 mins to fix

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

                int $flavorFlags,
                SiteLinksRdfBuilder $siteLinksRdfBuilder,
                TermsRdfBuilder $termsRdfBuilder,
                TruthyStatementRdfBuilderFactory $truthyStatementRdfBuilderFactory,
                FullStatementRdfBuilderFactory $fullStatementRdfBuilderFactory
        Severity: Minor
        Found in repo/includes/Rdf/ItemRdfBuilder.php - About 35 mins to fix

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

                  $flavorFlags,
                  RdfVocabulary $vocabulary,
                  RdfWriter $writer,
                  EntityMentionListener $mentionedEntityTracker,
                  DedupeBag $dedupe
          Severity: Minor
          Found in repo/includes/Rdf/EntityRdfBuilderFactory.php - About 35 mins to fix

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

                    EntityIdFormatter $idFormatter,
                    ValueFormatter $valueFormatter,
                    SnakFormatter $snakFormatter,
                    Language $language,
                    EntityIdParser $idParser
            Severity: Minor
            Found in repo/includes/SummaryFormatter.php - About 35 mins to fix

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

                      LanguageFallbackChainFactory $languageFallbackChainFactory,
                      LinkTargetEntityIdLookup $linkTargetEntityIdLookup,
                      LoggerInterface $logger,
                      PrefetchingTermLookup $prefetchingTermLookup,
                      SettingsArray $repoSettings
              Severity: Minor
              Found in repo/includes/Hooks/DifferenceEngineViewHeaderHookHandler.php - About 35 mins to fix

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

                        $flavorFlags,
                        RdfVocabulary $vocabulary,
                        RdfWriter $writer,
                        EntityMentionListener $mentionedEntityTracker,
                        DedupeBag $dedupe
                Severity: Minor
                Found in repo/includes/Rdf/ValueSnakRdfBuilderFactory.php - About 35 mins to fix

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

                          $flavorFlags,
                          RdfVocabulary $vocabulary,
                          RdfWriter $writer,
                          EntityMentionListener $mentionedEntityTracker,
                          DedupeBag $dedupe
                  Severity: Minor
                  Found in repo/includes/Rdf/EntityRdfBuilderFactory.php - About 35 mins to fix

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

                            $statementGuid,
                            Reference $reference,
                            $referenceHash,
                            SnakValidator $snakValidator,
                            $index = null
                    Severity: Minor
                    Found in repo/includes/ChangeOp/ChangeOpReference.php - About 35 mins to fix

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

                              EntityRevision $entityRevision,
                              ?RedirectRevision $followedRedirect,
                              array $incomingRedirects,
                              RdfBuilder $rdfBuilder,
                              ?string $flavor = null
                      Severity: Minor
                      Found in repo/includes/LinkedData/EntityDataSerializationService.php - About 35 mins to fix

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

                                $mainLanguageCode,
                                TermList $labels,
                                TermList $descriptions,
                                AliasGroupList $aliasGroups = null,
                                EntityId $entityId = null
                        Severity: Minor
                        Found in repo/includes/ParserOutput/PlaceholderEmittingEntityTermsView.php - About 35 mins to fix

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

                                  EntityContentDataCodec $codec,
                                  $blob,
                                  $contentFormat,
                                  $entityType,
                                  EntityId $entityId = null
                          Severity: Minor
                          Found in repo/includes/Content/DeferredDecodingEntityHolder.php - About 35 mins to fix

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

                                    LanguageFallbackChainFactory $fallbackChainFactory,
                                    TermboxRenderer $renderer,
                                    LocalizedTextProvider $textProvider,
                                    SpecialPageLinker $specialPageLinker,
                                    TextInjector $textInjector
                            Severity: Minor
                            Found in repo/includes/ParserOutput/TermboxView.php - About 35 mins to fix

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

                                      $mainLanguageCode,
                                      TermList $labels,
                                      TermList $descriptions,
                                      AliasGroupList $aliasGroups = null,
                                      EntityId $entityId = null
                              Severity: Minor
                              Found in repo/includes/ParserOutput/TermboxView.php - About 35 mins to fix

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

                                    public function convertUnit( $unit, $convertUnits, $coherentUnits, $unitUsage, &$reconvert ) {
                                Severity: Minor
                                Found in repo/maintenance/updateUnits.php - About 35 mins to fix

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

                                          $mainLanguageCode,
                                          TermList $labels,
                                          TermList $descriptions,
                                          AliasGroupList $aliasGroups = null,
                                          EntityId $entityId = null
                                  Severity: Minor
                                  Found in view/src/SimpleEntityTermsView.php - About 35 mins to fix

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

                                            EntityId $entityId,
                                            $revision,
                                            $language,
                                            $editLink,
                                            TermLanguageFallbackChain $preferredLanguages
                                    Severity: Minor
                                    Found in view/src/Termbox/Renderer/TermboxRemoteRenderer.php - About 35 mins to fix

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

                                              SetItemLabelValidator $validator,
                                              AssertItemExists $assertItemExists,
                                              ItemWriteModelRetriever $itemRetriever,
                                              ItemUpdater $itemUpdater,
                                              AssertUserIsAuthorized $assertUserIsAuthorized
                                      Severity: Minor
                                      Found in repo/rest-api/src/Application/UseCases/SetItemLabel/SetItemLabel.php - About 35 mins to fix

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

                                                RemovePropertyDescriptionValidator $requestValidator,
                                                AssertPropertyExists $assertPropertyExists,
                                                AssertUserIsAuthorized $assertUserIsAuthorized,
                                                PropertyWriteModelRetriever $propertyRetriever,
                                                PropertyUpdater $propertyUpdater
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language