wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

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

        EntityDocument $entity,
        $props,
        ?array $filterSiteIds,
        array $filterLangCodes,
        array $termFallbackChains
Severity: Minor
Found in repo/includes/Api/ResultBuilder.php - About 35 mins to fix

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

            EntityId $fromId,
            EntityId $toId,
            bool $bot,
            array $tags,
            IContextSource $context
    Severity: Minor
    Found in repo/includes/Interactors/EntityRedirectCreationInteractor.php - About 35 mins to fix

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

              EntityRedirect $redirect,
              FormatableSummary $summary,
              IContextSource $context,
              bool $bot,
              array $tags
      Severity: Minor
      Found in repo/includes/Interactors/EntityRedirectCreationInteractor.php - About 35 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

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

                  ApiQuery $mainModule,
                  string $moduleName,
                  ApiErrorReporter $errorReporter,
                  EntityIdParser $idParser,
                  SiteLookup $siteLookup
          Severity: Minor
          Found in repo/includes/Api/ListSubscribers.php - About 35 mins to fix

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

                    ChangeOp $changeOp,
                    EntityDocument $entity,
                    Summary $summary,
                    Statement $statement,
                    Reference $newReference
            Severity: Minor
            Found in repo/includes/Api/SetReference.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/SetDescription.php - About 35 mins to fix

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

                        EntityDocument $entity,
                        $summary,
                        array $requestParams,
                        IContextSource $context,
                        int $flags = 0
                Severity: Minor
                Found in repo/includes/Api/EntitySavingHelper.php - About 35 mins to fix

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

                          ApiQuery $apiQuery,
                          string $moduleName,
                          SiteLookup $siteLookup,
                          ApiHelperFactory $apiHelperFactory,
                          EntityIdParser $entityIdParser
                  Severity: Minor
                  Found in repo/includes/Api/ListSubscribers.php - About 35 mins to fix

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

                            string $baseConceptUri,
                            EntityIdLookup $idLookup,
                            EntityLookup $entityLookup,
                            EntityNamespaceLookup $nsLookup,
                            LoggerInterface $logger
                    Severity: Minor
                    Found in repo/includes/Hooks/SidebarBeforeOutputHookHandler.php - About 35 mins to fix

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

                              ApiMain $mainModule,
                              string $moduleName,
                              ApiHelperFactory $apiHelperFactory,
                              ItemMergeInteractor $interactor,
                              SettingsArray $settings
                      Severity: Minor
                      Found in repo/includes/Api/MergeItems.php - About 35 mins to fix

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

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

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

                              public function addSnak( RdfWriter $writer, $snakNamespace, Snak $snak, $propertyNamespace, string $parentLName ) {
                          Severity: Minor
                          Found in repo/includes/Rdf/SnakRdfBuilder.php - About 35 mins to fix

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

                                    RdfVocabulary $vocabulary,
                                    EntityRdfBuilderFactory $entityRdfBuilderFactory,
                                    EntityContentFactory $entityContentFactory,
                                    EntityStubRdfBuilderFactory $entityStubRdfBuilderFactory,
                                    EntityRevisionLookup $entityRevisionLookup
                            Severity: Minor
                            Found in repo/includes/Rdf/RdfBuilderFactory.php - About 35 mins to fix

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

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

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

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

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

                                      public function showData( WebRequest $request, OutputPage $output, $format, EntityId $id, $revision ) {
                                  Severity: Minor
                                  Found in repo/includes/LinkedData/EntityDataRequestHandler.php - About 35 mins to fix

                                    Method getValueSnakRdfBuilder 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 __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              PrefetchingTermLookup $termLookup,
                                              RdfVocabulary $vocabulary,
                                              RdfWriter $writer,
                                              array $labelPredicates,
                                              array $languageCodes
                                      Severity: Minor
                                      Found in repo/includes/Rdf/ItemStubRdfBuilder.php - About 35 mins to fix

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

                                                int $flavorFlags,
                                                TruthyStatementRdfBuilderFactory $truthyStatementRdfBuilderFactory,
                                                FullStatementRdfBuilderFactory $fullStatementRdfBuilderFactory,
                                                TermsRdfBuilder $termsRdfBuilder,
                                                PropertySpecificComponentsRdfBuilder $propertySpecificComponentsRdfBuilder
                                        Severity: Minor
                                        Found in repo/includes/Rdf/PropertyRdfBuilder.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language