Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 2 | public function deliver(MessageInterface $message, callable $next): void |
|
23 | { |
||
24 | 2 | $messageViolationListException = $this->validator->validate($message); |
|
25 | |||
26 | 2 | if (count($messageViolationListException) !== 0) { |
|
27 | 1 | throw $messageViolationListException; |
|
28 | } |
||
29 | |||
30 | 1 | $next($message); |
|
31 | 1 | } |
|
33 |