wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCases/AddPropertyAliasesInLanguage/AddPropertyAliasesInLanguage.php

Summary

Maintainability
A
1 hr
Test Coverage

Method execute has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute( AddPropertyAliasesInLanguageRequest $request ): AddPropertyAliasesInLanguageResponse {
        $deserializedRequest = $this->validator->validateAndDeserialize( $request );

        $propertyId = $deserializedRequest->getPropertyId();
        $languageCode = $deserializedRequest->getLanguageCode();

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

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

      There are no issues that match your filters.

      Category
      Status