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

        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

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

          public function __construct( string $field, $value, string $path = '', string $message = '', Throwable $previous = null ) {

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

                SetItemDescriptionValidator $validator,
                AssertItemExists $assertItemExists,
                ItemWriteModelRetriever $itemRetriever,
                ItemUpdater $itemUpdater,
                AssertUserIsAuthorized $assertUserIsAuthorized

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

                  LabelsSerializer $labelsSerializer,
                  DescriptionsSerializer $descriptionsSerializer,
                  AliasesSerializer $aliasesSerializer,
                  StatementListSerializer $statementsSerializer,
                  SitelinksSerializer $sitelinksSerializer
          Severity: Minor
          Found in repo/rest-api/src/Application/Serialization/ItemSerializer.php - About 35 mins to fix

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

                    LabelsSerializer $labelsSerializer,
                    DescriptionsSerializer $descriptionsSerializer,
                    AliasesSerializer $aliasesSerializer,
                    StatementListSerializer $statementsSerializer,
                    SitelinksSerializer $sitelinksSerializer
            Severity: Minor
            Found in repo/rest-api/src/Application/Serialization/ItemPartsSerializer.php - About 35 mins to fix

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

                      string $statementId,
                      array $editTags,
                      bool $isBot,
                      ?string $comment,
                      ?string $username

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

                        RemovePropertyLabelValidator $requestValidator,
                        AssertPropertyExists $assertPropertyExists,
                        AssertUserIsAuthorized $assertUserIsAuthorized,
                        PropertyWriteModelRetriever $propertyRetriever,
                        PropertyUpdater $propertyUpdater

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

                          ItemWriteModelRetriever $itemRetriever,
                          AssertItemExists $assertItemExists,
                          AssertUserIsAuthorized $assertUserIsAuthorized,
                          ItemUpdater $itemUpdater,
                          AddItemAliasesInLanguageValidator $validator

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

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

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

                              HttpRequestFactory $requestFactory,
                              ?string $ssrServerUrl,
                              $ssrServerTimeout,
                              LoggerInterface $logger,
                              StatsdDataFactoryInterface $stats
                      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

                                string $filterId,
                                string $filterDescription,
                                string $message = '',
                                int $code = 0,
                                ?Throwable $previous = null
                        Severity: Minor
                        Found in repo/rest-api/src/Domain/Services/Exceptions/AbuseFilterException.php - About 35 mins to fix

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

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

                            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/EntityTermsView.php - About 35 mins to fix

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

                                  private function formatUrl( 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

                                    public function __construct( array $item, array $editTags, bool $isBot, ?string $comment, ?string $username ) {
                                Severity: Minor
                                Found in repo/rest-api/src/Application/UseCases/CreateItem/CreateItemRequest.php - About 35 mins to fix

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

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

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

                                            RemoveStatementValidator $validator,
                                            AssertUserIsAuthorized $assertUserIsAuthorized,
                                            AssertStatementSubjectExists $assertStatementSubjectExists,
                                            StatementWriteModelRetriever $statementRetriever,
                                            StatementRemover $statementRemover

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

                                          public function __construct( array $property, array $editTags, bool $isBot, ?string $comment, ?string $username ) {

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

                                                AddPropertyAliasesInLanguageValidator $validator,
                                                AssertPropertyExists $assertPropertyExists,
                                                AssertUserIsAuthorized $assertUserIsAuthorized,
                                                PropertyWriteModelRetriever $propertyRetriever,
                                                PropertyUpdater $propertyUpdater
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language