repo/rest-api/src/Application/UseCases/PatchStatement/PatchedStatementValidator.php
Method validateAndDeserializeStatement
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateAndDeserializeStatement( $patchedStatement ): Statement {
if (
!is_array( $patchedStatement ) || ( count( $patchedStatement ) && array_is_list( $patchedStatement ) ) ) {
throw UseCaseError::newPatchResultInvalidValue( '', $patchedStatement );
}