| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function item(string $id, string $slug): Response |
||
|
|
|||
| 35 | { |
||
| 36 | try { |
||
| 37 | $uuid = Uuid::fromString($id); |
||
| 38 | $item = $this->repository->getItem($uuid); |
||
| 39 | } catch (\Exception $e) { |
||
| 40 | $error = $e->getMessage(); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->render('frontend/item.html.twig', [ |
||
| 44 | 'item' => $item ?? null, |
||
| 45 | 'error' => $error ?? null |
||
| 46 | ]); |
||
| 49 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.