Conditions | 5 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function execute($messages, $receiver): array |
||
15 | { |
||
16 | if (!$this->support($receiver)) { |
||
17 | throw new \InvalidArgumentException('TOOD'); |
||
18 | } |
||
19 | $flags = $receiver->batchExecute($messages); |
||
20 | |||
21 | if (!is_array($flags)) { // flat flag for each delivery tag |
||
22 | $flag = $flags; |
||
23 | $flags = []; |
||
24 | foreach ($messages as $message) { |
||
25 | $flags[$message->getDeliveryTag()] = $flag; |
||
26 | } |
||
27 | } else if (count($flags) !== count($messages)) { |
||
28 | throw new AMQPRuntimeException(// TODO |
||
|
|||
29 | 'Method batchExecute() should return an array with elements equal with the number of messages processed' |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | return $flags; |
||
34 | } |
||
40 | } |
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