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