magento-hackathon /
DevDashboard2
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Firegento\DevDashboard\Plugin; |
||
| 4 | |||
| 5 | use Magento\Backend\Controller\Adminhtml\Cache\MassRefresh as Subject; |
||
| 6 | |||
| 7 | class BackendCacheMassRefresh extends BackendCacheMassAbstract |
||
| 8 | { |
||
| 9 | public function afterExecute(Subject $subject, \Magento\Backend\Model\View\Result\Redirect $resultRedirect) |
||
|
0 ignored issues
–
show
|
|||
| 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 | } |
||
| 18 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.