| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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
$aand$care used. There was no need to assign$b.Instead, the list call could have been.