| 1 | <?php |
||
| 8 | final class QueryStore |
||
| 9 | { |
||
| 10 | private $match_query; |
||
| 11 | private $items; |
||
| 12 | |||
| 13 | public function __construct(MatchQuery $match_query) { |
||
| 17 | |||
| 18 | public function add($query, $data) { |
||
| 21 | |||
| 22 | /** return all of the queries + data tuples that match the given template */ |
||
| 23 | public function resolve(Plates\Template $template) { |
||
| 30 | } |
||
| 31 |
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.