Email Validation does not return a key name, just the resource itself

This commit is contained in:
David Garcia 2017-12-08 01:55:59 +00:00 committed by David Garcia
parent 3cf9aca200
commit 1fb0d0bbc5

View File

@ -33,9 +33,9 @@ final class ValidateResponse implements ApiResponse
public static function create(array $data) public static function create(array $data)
{ {
$message = isset($data['message']) ? $data['message'] : null; $message = isset($data['message']) ? $data['message'] : null;
$route = isset($data['route']) ? EmailValidation::create($data['emailValidation']) : null; $emailValidation = EmailValidation::create($data);
return new self($message, $route); return new self($message, $emailValidation);
} }
/** /**