repo/rest-api/src/Infrastructure/ValidatingRequestDeserializer.php
Method validateAndDeserialize
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateAndDeserialize( UseCaseRequest $request ): DeserializedRequestAdapter {
$requestObjectId = spl_object_id( $request );
if ( array_key_exists( $requestObjectId, $this->validRequestResults ) ) {
return $this->validRequestResults[$requestObjectId];
}