Conditions | 5 |
Paths | 5 |
Total Lines | 25 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function consume() |
||
37 | { |
||
38 | $callback = function($message) { $this->handler($message); }; |
||
39 | $this->channel->basic_consume($this->getQueue(), 'consumer', false, $this->getReply(), false, false, $callback); |
||
40 | |||
41 | $pid = pcntl_fork(); |
||
42 | |||
43 | if ($pid == -1) { |
||
44 | echo 'annot fork consume proccess...'; |
||
45 | return; |
||
46 | } |
||
47 | |||
48 | if ($pid) { |
||
49 | while (true) { |
||
50 | $this->send_heartbeat(); |
||
51 | sleep(10); |
||
52 | } |
||
53 | } else { |
||
54 | while (count($this->channel->callbacks)) |
||
55 | { |
||
56 | $this->channel->wait(); |
||
57 | } |
||
58 | } |
||
59 | |||
60 | $this->closeConnection(); |
||
61 | } |
||
77 |
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