| Conditions | 5 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function indexAction() |
||
| 26 | { |
||
| 27 | $site = 'default'; |
||
| 28 | |||
| 29 | if (isset($GLOBALS['BE_USER']->user['siteid']) && $GLOBALS['BE_USER']->user['siteid'] != '') { |
||
| 30 | $siteManager = \Aimeos\MShop::create($this->contextBackend(), 'locale/site'); |
||
| 31 | $siteId = current(array_reverse(explode('.', trim($GLOBALS['BE_USER']->user['siteid'], '.')))); |
||
| 32 | $site = ($siteId ? $siteManager->get($siteId)->getCode() : 'default'); |
||
| 33 | } |
||
| 34 | |||
| 35 | if (!class_exists('\TYPO3\CMS\Extbase\Http\ForwardResponse')) { |
||
| 36 | return $this->forward('search', 'Jqadm', null, ['site' => $site]); |
||
|
|
|||
| 37 | } |
||
| 38 | |||
| 39 | return (new ForwardResponse('search'))->withControllerName('Jqadm')->withArguments(['site' => $site]); |
||
| 40 | } |
||
| 42 |
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.