for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firegento\DevDashboard\Plugin;
use Magento\Backend\Controller\Adminhtml\Cache\MassEnable as Subject;
class BackendCacheMassEnable extends BackendCacheMassAbstract
{
public function afterExecute(Subject $subject, \Magento\Backend\Model\View\Result\Redirect $resultRedirect)
$subject
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function afterExecute(/** @scrutinizer ignore-unused */ Subject $subject, \Magento\Backend\Model\View\Result\Redirect $resultRedirect)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
if (false !== strpos($this->redirect->getRefererUrl(), 'devdashboard/index/index')) {
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
return $resultRedirect->setPath('devdashboard/index/index');
}
return $resultRedirect;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.