@@ -76,8 +76,7 @@ discard block |
||
| 76 | 76 | $this->response = $this->get_response(); |
| 77 | 77 | |
| 78 | 78 | Log::instance()->add('the request was processed successfully'); |
| 79 | - } |
|
| 80 | - catch (\Exception $e) |
|
| 79 | + } catch (\Exception $e) |
|
| 81 | 80 | { |
| 82 | 81 | $this->response = $this->get_error_response($e); |
| 83 | 82 | |
@@ -197,12 +196,10 @@ discard block |
||
| 197 | 196 | if ($e instanceof Exception\Structure) |
| 198 | 197 | { |
| 199 | 198 | $message = 'Error in request'; |
| 200 | - } |
|
| 201 | - elseif ($e instanceof Exception\Sign) |
|
| 199 | + } elseif ($e instanceof Exception\Sign) |
|
| 202 | 200 | { |
| 203 | 201 | $message = 'Signature error!'; |
| 204 | - } |
|
| 205 | - elseif ($e instanceof Exception\Runtime) |
|
| 202 | + } elseif ($e instanceof Exception\Runtime) |
|
| 206 | 203 | { |
| 207 | 204 | $message = 'Error while processing request'; |
| 208 | 205 | } |