| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | View Code Duplication | 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.