| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 34 | public function aroundGetStartupPageUrl(\Magento\Backend\Model\Url $subject, callable $callable) |
||
|
|
|||
| 35 | { |
||
| 36 | |||
| 37 | $userId = $this->_authSession->getUser()->getId(); |
||
| 38 | |||
| 39 | /** @var Config $config */ |
||
| 40 | $config = $this->_configRepository->getByUserId($userId); |
||
| 41 | if ($config->getData('use_devdashboard')) { |
||
| 42 | return 'devdashboard/index/index'; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $callable(); |
||
| 46 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.