| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function afterExecute(Subject $subject, \Magento\Backend\Model\View\Result\Redirect $resultRedirect) |
||
| 10 | { |
||
| 11 | if (false !== strpos($this->redirect->getRefererUrl(), 'devdashboard/index/index')) { |
||
| 12 | /** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */ |
||
| 13 | return $resultRedirect->setPath('devdashboard/index/index'); |
||
| 14 | } |
||
| 15 | return $resultRedirect; |
||
| 16 | } |
||
| 17 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.