| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 38 | public function showAction($slug) |
||
| 39 | { |
||
| 40 | $psr = $this->get('app.repository.psr')->findOneBySlug($slug); |
||
| 41 | |||
| 42 | if (!$psr) { |
||
| 43 | throw $this->createNotFoundException( |
||
| 44 | 'No PSR found for slug '.$slug |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $this->render('psr/show.html.twig', [ |
||
| 49 | 'psr' => $psr |
||
| 50 | ]); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |