repo/rest-api/src/Application/UseCases/AddPropertyAliasesInLanguage/AddPropertyAliasesInLanguage.php
Method execute
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
AddPropertyAliasesInLanguageValidator $validator,
AssertPropertyExists $assertPropertyExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
PropertyWriteModelRetriever $propertyRetriever,
PropertyUpdater $propertyUpdater