1 | <?php |
||
7 | class RedisDriver implements DriverInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var Redis |
||
11 | */ |
||
12 | private $redis; |
||
13 | |||
14 | /** |
||
15 | * @param Redis $redis |
||
16 | */ |
||
17 | public function __construct(Redis $redis) |
||
21 | |||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | public function push($queue, $message) |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function pop($queue) |
||
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.