1 | <?php |
||
8 | final class Manager |
||
9 | { |
||
10 | /** |
||
11 | * @var Connector |
||
12 | */ |
||
13 | private $connector; |
||
14 | |||
15 | /** |
||
16 | * @var Builder |
||
17 | */ |
||
18 | private $builder; |
||
19 | |||
20 | /** |
||
21 | * @param Connector $connector |
||
22 | * @param Builder $builder |
||
23 | */ |
||
24 | public function __construct(Connector $connector, Builder $builder) |
||
29 | |||
30 | /** |
||
31 | * @param string $method |
||
32 | * @param array $parameters |
||
33 | * |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function __call($method, array $parameters = []) |
||
45 | |||
46 | /** |
||
47 | * @return PromiseInterface |
||
48 | */ |
||
49 | public function get() |
||
59 | |||
60 | /** |
||
61 | * @return PromiseInterface |
||
62 | */ |
||
63 | public function first() |
||
75 | } |
||
76 |
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.