repo/rest-api/src/Application/UseCases/PatchPropertyAliases/PatchPropertyAliases.php
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PatchPropertyAliasesValidator $validator,
AssertPropertyExists $assertPropertyExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
PropertyAliasesRetriever $aliasesRetriever,
AliasesSerializer $aliasesSerializer,
Method execute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchPropertyAliasesRequest $request ): PatchPropertyAliasesResponse {
$deserializedRequest = $this->validator->validateAndDeserialize( $request );
$editMetadata = $deserializedRequest->getEditMetadata();
$this->assertPropertyExists->execute( $deserializedRequest->getPropertyId() );