repo/rest-api/src/Application/UseCaseRequestValidation/ItemDescriptionEditRequestValidatingDeserializer.php
Method validateAndDeserialize
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateAndDeserialize( ItemDescriptionEditRequest $request ): Term {
$item = $this->itemRetriever->getItemWriteModel( new ItemId( $request->getItemId() ) );
$language = $request->getLanguageCode();
$description = $request->getDescription();