repo/rest-api/src/Application/Validation/StatementValidator.php
Method validate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validate( array $statementSerialization, string $basePath = '' ): ?ValidationError {
try {
$this->deserializedStatement = $this->deserializer->deserialize( $statementSerialization, $basePath );
} catch ( MissingFieldException $e ) {
return new ValidationError(
Avoid too many return
statements within this method. Open
Open
return null;