| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function resolve(Plates\Template $template) { |
||
| 24 | $items = array_filter($this->items, function($tup) use ($template) { |
||
| 25 | list($query, $data) = $tup; |
||
|
|
|||
| 26 | return $this->match_query->matchQuery($query, $template); |
||
| 27 | }); |
||
| 28 | return array_map($items, function($tup) { return $tup[1]; }); |
||
| 29 | } |
||
| 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.