Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function getLeftNavigation(Globals $globals, AccessRights $access_rights): Response |
||
20 | { |
||
21 | $navigation = json_decode(file_get_contents($globals->getBaseBundlePath() . "/Resources/json/navigation.json"), true); |
||
22 | |||
23 | foreach ($navigation["items"] as $item) { |
||
24 | if ($access_rights->testRight($item["right"])) { |
||
25 | $this->nav[] = $item; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | $this->getModuleNavigation(); |
||
30 | |||
31 | return $this->render("@RibsAdmin/navigation.html.twig", ["navigation" => $this->nav]); |
||
32 | } |
||
56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.