repo/rest-api/src/Application/UseCases/AddItemAliasesInLanguage/AddItemAliasesInLanguage.php
Method execute
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
ItemWriteModelRetriever $itemRetriever,
AssertItemExists $assertItemExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
ItemUpdater $itemUpdater,
AddItemAliasesInLanguageValidator $validator