| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function showAction($slug) |
||
| 39 | { |
||
| 40 | $psr = $this->get('AppBundle\Repository\PsrRepository')->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 | 'psrs' => $this->get('AppBundle\Repository\PsrRepository')->findAll() |
||
| 51 | ]); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |