Total Complexity | 7 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class SimpleExecuteReveiverStrategy extends AbstractExecuteCallbackStrategy |
||
|
|||
10 | { |
||
11 | /** @var AMQPMessage */ |
||
12 | private $processingMessage; |
||
13 | public function canPrecessMultiMessages(): bool |
||
14 | { |
||
15 | return false; |
||
16 | } |
||
17 | |||
18 | public function consumeCallback(AMQPMessage $message) |
||
22 | } |
||
23 | |||
24 | public function onMessageProcessed(AMQPMessage $message) |
||
25 | { |
||
26 | if ($this->processingMessage !== $message) { |
||
27 | throw new \InvalidArgumentException('TODO'); |
||
28 | } |
||
29 | $this->processingMessage = null; |
||
30 | } |
||
31 | |||
32 | public function onCatchTimeout(AMQPTimeoutException $e) |
||
34 | } |
||
35 | |||
36 | public function onStopConsuming() |
||
40 | } |
||
41 | } |
||
42 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths