Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function fetchItem() |
||
35 | { |
||
36 | list ($source, $title, $action, $options) = func_get_args(); |
||
|
|||
37 | |||
38 | return $this->_view->Form->button($title, Hash::merge([ |
||
39 | 'icon' => 'trash', |
||
40 | 'data-action' => $action, |
||
41 | 'button' => 'red lighten-2', |
||
42 | 'class' => 'jsProcessDelete', |
||
43 | ], (array) $options)); |
||
44 | } |
||
45 | } |
||
46 |
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.