Last active
June 10, 2019 09:39
-
-
Save szyku/9cbcc884303187465eb046184ca159e7 to your computer and use it in GitHub Desktop.
Better reason
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($response->getStatusCode() >= 400) { | |
$code = $this->extractErrorCode($response->getBody()); | |
switch ($code) { | |
case FailReasons::NO_TAGS: | |
$msg = 'The document has not enough signature tags'; | |
break; | |
//... | |
default: $msg = $this->getBodyContentAsString($response->getBody()); | |
} | |
throw new BadSigningRequest($msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment