| Conditions | 5 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function applyResponse(HttpRequestInterface $request, HttpResponseInterface $response, array $options) |
||
| 32 | { |
||
| 33 | if ($response instanceof ResponseInterface && |
||
| 34 | isset($options['rpc_error']) && |
||
| 35 | true === $options['rpc_error'] && |
||
| 36 | null !== $response->getRpcErrorCode() |
||
| 37 | ) { |
||
| 38 | throw RequestException::create($request, $response); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $response; |
||
| 42 | } |
||
| 44 |