repo/rest-api/src/Application/UseCases/PatchItem/PatchItem.php
Method execute
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchItemRequest $request ): PatchItemResponse {
$deserializedRequest = $this->validator->validateAndDeserialize( $request );
$providedMetadata = $deserializedRequest->getEditMetadata();
$itemId = $deserializedRequest->getItemId();
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PatchItemValidator $validator,
AssertItemExists $assertItemExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
ItemRetriever $itemRetriever,
ItemSerializer $itemSerializer,