Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 2 | public function execute(RequestInterface $request, ExpectationCollection $expectations): void |
|
20 | { |
||
21 | try { |
||
22 | 2 | $this->decorated->execute($request, $expectations); |
|
23 | 1 | } catch (ValidationException|ExpectationFailedException $error) { |
|
24 | 1 | $this->logger->emergency( |
|
25 | 1 | $error->getMessage(), |
|
26 | 1 | ['error' => $error] |
|
27 | 1 | ); |
|
31 |