Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
37 | private function getModuleNavigation() |
||
38 | { |
||
39 | $modules = $this->getDoctrine()->getRepository(Module::class)->findBy([ |
||
40 | "active" => true, |
||
41 | "displayed" => true |
||
42 | ]); |
||
43 | |||
44 | foreach ($modules as $module) { |
||
45 | $navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath |
||
|
|||
46 | ($module->getPackageName()) . "/Resources/json/navigation.json"), true); |
||
47 | |||
48 | foreach ($navigation["items"] as $item) { |
||
49 | if ($this->get("ribs_admin.acess_rights")->testRight($item["right"])) { |
||
50 | $this->nav[] = $item; |
||
51 | } |
||
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.