| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function render() |
||
| 36 | { |
||
| 37 | $controllerName = $this->arguments['controllerName']; |
||
| 38 | $actionNames = $this->arguments['actionNames']; |
||
| 39 | |||
| 40 | $controllerContext = $this->renderingContext->getControllerContext(); |
||
|
|
|||
| 41 | |||
| 42 | if ($controllerContext->getRequest()->getControllerName() == $controllerName) { |
||
| 43 | |||
| 44 | if (empty($actionNames)) { |
||
| 45 | return 'active'; |
||
| 46 | } elseif (in_array($controllerContext->getRequest()->getControllerActionName(), $actionNames)) { |
||
| 47 | return 'active'; |
||
| 48 | } else { |
||
| 49 | return ''; |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 | return ''; |
||
| 54 | } |
||
| 57 |
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.