for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Zed\FactFinderSdk\Communication\Controller;
use Spryker\Zed\Kernel\Communication\Controller\AbstractController;
use SprykerEco\Shared\FactFinderSdk\FactFinderSdkConstants;
use Symfony\Component\HttpFoundation\Request;
* @method \SprykerEco\Zed\FactFinderSdk\Persistence\FactFinderSdkQueryContainerInterface getQueryContainer()
* @method \SprykerEco\Zed\FactFinderSdk\Business\FactFinderSdkFacadeInterface getFacade()
* @method \SprykerEco\Zed\FactFinderSdk\Communication\FactFinderSdkCommunicationFactory getFactory()
class NavigationController extends AbstractController
{
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
public function factFinderAdminPanelAction(Request $request)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function factFinderAdminPanelAction(/** @scrutinizer ignore-unused */ Request $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$factFinderProductionConfiguration = $this->getFactory()->getConfig()->getFactFinderProductionConfiguration();
return $this->redirectResponse(
$factFinderProductionConfiguration[FactFinderSdkConstants::ADMIN_PANEL_URL]
);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.