Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
37 | public function deleteAction($id = null) |
||
38 | { |
||
39 | $object = call_user_func($this->model . '::findFirst', "$id"); |
||
40 | $object->delete(); |
||
41 | |||
42 | $this->useCaseUpdate($object); |
||
43 | $this->response->redirect("$this->controller/index"); |
||
44 | $this->response->redirect($_SERVER['HTTP_REFERER'] . "/2"); |
||
45 | } |
||
46 | |||
62 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.