wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
1 hr
Test Coverage

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

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

        $itemId = $deserializedRequest->getItemId();
        $languageCode = $deserializedRequest->getLanguageCode();

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

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

      There are no issues that match your filters.

      Category
      Status