1 | <?php |
||
8 | class BeanstalkdAdapter implements Adapter |
||
9 | { |
||
10 | /** @var \Pheanstalk\PheanstalkInterface */ |
||
11 | protected $client; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $channel; |
||
15 | |||
16 | public function __construct(PheanstalkInterface $client, string $channel = "default") |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function flush() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function send(string $payload) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function receive() |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function remove($job) |
||
66 | } |
||
67 |
This check looks for
while
loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.Consider removing the loop.