Conditions | 5 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 16 | public function execute($command, callable $next) |
|
26 | { |
||
27 | try { |
||
28 | /** @var Response|GetReportResponse $response */ |
||
29 | 16 | return $next($command); |
|
30 | 5 | } catch (Exception $exception) { |
|
31 | 2 | throw $exception; |
|
32 | 3 | } catch (ClientExceptionInterface $exception) { |
|
33 | 1 | throw new UnavailableException($exception->getMessage(), 0, $exception); |
|
34 | 2 | } catch (ValidationException $exception) { |
|
35 | 1 | throw new RequestException($exception->getMessage(), 0, $exception); |
|
36 | 1 | } catch (SerializerException $exception) { |
|
37 | 1 | throw new UnavailableException($exception->getMessage(), 0, $exception); |
|
38 | } |
||
41 |