| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | View Code Duplication | public function viewItem() |
|
| 34 | { |
||
| 35 | $item = $this->getItem($this->request->param('Item')); |
||
| 36 | if (!$item) { |
||
| 37 | $this->httpError(404); |
||
| 38 | } |
||
| 39 | return $this->customise(array('Item' => $item))->renderWith(array('ExplanationPage_view', 'Page')); |
||
| 40 | } |
||
| 41 | |||
| 52 |
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.