Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function dequeue($queue) |
||
34 | { |
||
35 | list($_, $message) = $this->redis->blPop($queue, 5) ?: null; |
||
1 ignored issue
–
show
|
|||
36 | |||
37 | return $message; |
||
38 | } |
||
39 | } |
||
40 |
This checks looks for assignemnts to variables using the
list(...)
function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$a
and$c
are used. There was no need to assign$b
.Instead, the list call could have been.