Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function showAction(string $path = ''): Response |
||
45 | { |
||
46 | $page = $this->doctrine->getRepository($this->entity)->findOneByPath($path); |
||
|
|||
47 | if (empty($page)) { |
||
48 | throw new NotFoundHttpException(\sprintf('Page not found for path "/%s".', $path)); |
||
49 | } |
||
50 | $breadCrumbs = BreadCrumbs::create($path); |
||
51 | $template = $this->prefix.\str_replace(' ', '_', $page->getTemplate()).'.html.twig'; |
||
52 | |||
53 | return new Response($this->twig->render($template, ['page' => $page, 'breadCrumbs' => $breadCrumbs])); |
||
54 | } |
||
55 | } |
||
56 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.