wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 2,096 of 2,096 total issues

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

        SetPropertyLabelValidator $validator,
        PropertyWriteModelRetriever $propertyRetriever,
        PropertyUpdater $propertyUpdater,
        AssertPropertyExists $assertPropertyExists,
        AssertUserIsAuthorized $assertUserIsAuthorized

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

            RemoveItemDescriptionValidator $useCaseValidator,
            AssertItemExists $assertItemExists,
            AssertUserIsAuthorized $assertUserIsAuthorized,
            ItemWriteModelRetriever $itemRetriever,
            ItemUpdater $itemUpdater

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

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

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

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

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

              public function getContent( EntityId $entityId, $revision, $language, $editLink, TermLanguageFallbackChain $preferredLanguages );
          Severity: Minor
          Found in view/src/Termbox/Renderer/TermboxRenderer.php - About 35 mins to fix

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

                    ParserOptions $parserOptions,
                    array $thumbLimits,
                    LanguageFactory $languageFactory,
                    FormatterOptions $options = null,
                    RepoGroup $repoGroup = null
            Severity: Minor
            Found in lib/includes/Formatters/CommonsInlineImageFormatter.php - About 35 mins to fix

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

                      ?SettingsArray $clientSettings,
                      ?SettingsArray $repoSettings,
                      SiteLookup $siteLookup,
                      BagOStuff $cache,
                      LanguageNameLookupFactory $languageNameLookupFactory
              Severity: Minor
              Found in lib/includes/Modules/SitesModule.php - About 35 mins to fix

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

                        RepoDomainDb $repoDb,
                        TypeIdsAcquirer $typeIdsAcquirer,
                        TypeIdsResolver $typeIdsResolver,
                        EntityIdComposer $entityIdComposer,
                        LoggerInterface $logger
                Severity: Minor
                Found in lib/includes/Store/Sql/Terms/DatabaseMatchingTermsLookup.php - About 35 mins to fix

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

                          RepoDomainDb $repoDb, JobQueueGroup $jobQueueGroup, TermInLangIdsAcquirer $termInLangIdsAcquirer,
                          TermInLangIdsResolver $termInLangIdsResolver, StringNormalizer $stringNormalizer
                  Severity: Minor
                  Found in lib/includes/Store/Sql/Terms/DatabaseTermStoreWriterBase.php - About 35 mins to fix

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

                            string $table,
                            string $selectedVar,
                            string $primaryKeyVar,
                            array $primaryKeyValues,
                            string $fname
                    Severity: Minor
                    Found in lib/includes/Store/Sql/Terms/DatabaseInnerTermStoreCleaner.php - About 35 mins to fix

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

                              array $snakFormatterConstructorCallbacks,
                              OutputFormatValueFormatterFactory $valueFormatterFactory,
                              PropertyDataTypeLookup $propertyDataTypeLookup,
                              DataTypeFactory $dataTypeFactory,
                              MessageInLanguageProvider $messageInLanguageProvider
                      Severity: Minor
                      Found in lib/includes/Formatters/OutputFormatSnakFormatterFactory.php - About 35 mins to fix

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

                                IReadableDatabase $dbr,
                                array $criteria,
                                $termType = null,
                                $entityType = null,
                                array $options = []
                        Severity: Minor
                        Found in lib/includes/Store/Sql/Terms/DatabaseMatchingTermsLookup.php - About 35 mins to fix

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

                                  ?TermFallback $termFallback,
                                  EntityId $targetEntityId,
                                  int $revisionId,
                                  string $languageCode,
                                  string $termType
                          Severity: Minor
                          Found in lib/includes/TermFallbackCache/TermFallbackCacheFacade.php - About 35 mins to fix

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

                                    CacheInterface $cache,
                                    PrefetchingTermLookup $lookup,
                                    RedirectResolvingLatestRevisionLookup $redirectResolvingRevisionLookup,
                                    ContentLanguages $termLanguages,
                                    ?int $ttl = null
                            Severity: Minor
                            Found in lib/includes/Store/CachingPrefetchingTermLookup.php - About 35 mins to fix

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

                                      $languageCode,
                                      TermInLangIdsResolver $dbTermInLangIdsResolver,
                                      BagOStuff $cache,
                                      $cacheDuration,
                                      $cacheKey
                              Severity: Minor
                              Found in lib/includes/Store/Sql/Terms/CachedDatabasePropertyLabelResolver.php - About 35 mins to fix

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

                                    public function __construct( int $revisionId, string $slot, $status = '', $code = 0, Exception $previous = null ) {
                                Severity: Minor
                                Found in lib/includes/Store/InconsistentRedirectException.php - About 35 mins to fix

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

                                          LanguageFallbackChainFactory $languageFallbackChainFactory,
                                          RedirectResolvingLatestRevisionLookup $redirectResolvingLatestRevisionLookup,
                                          TermFallbackCacheFacade $termFallbackCache,
                                          TermLookup $termLookup,
                                          TermBuffer $termBuffer = null
                                  Severity: Minor
                                  Found in lib/includes/Store/FallbackLabelDescriptionLookupFactory.php - About 35 mins to fix

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

                                            string $format,
                                            PropertyDataTypeLookup $dataTypeLookup,
                                            SnakFormatter $specialCaseSnakFormatter,
                                            SnakFormatter $fallbackSnakFormatter,
                                            array $specialCasedPropertyDataTypes
                                    Severity: Minor
                                    Found in lib/includes/Formatters/BinaryOptionDispatchingSnakFormatter.php - About 35 mins to fix

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

                                              IReadableDatabase $dbr,
                                              TermIndexSearchCriteria $mask,
                                              string $entityType,
                                              $termType = null,
                                              array $options = []
                                      Severity: Minor
                                      Found in lib/includes/Store/Sql/Terms/DatabaseMatchingTermsLookup.php - About 35 mins to fix

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

                                                ?SettingsArray $clientSettings,
                                                ?SettingsArray $repoSettings,
                                                SiteLookup $siteLookup,
                                                BagOStuff $cache,
                                                LanguageNameLookupFactory $languageNameLookupFactory
                                        Severity: Minor
                                        Found in lib/includes/Modules/CurrentSiteModule.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language