| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function pop($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
$aand$care used. There was no need to assign$b.Instead, the list call could have been.