for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Yves\CrefoPay\Controller;
use Spryker\Yves\Kernel\Controller\AbstractController;
use SprykerShop\Yves\CheckoutPage\Plugin\Provider\CheckoutPageControllerProvider;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
* @method \SprykerEco\Yves\CrefoPay\CrefoPayFactory getFactory()
class CallbackController extends AbstractController
{
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
public function confirmationAction(Request $request): RedirectResponse
$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 confirmationAction(/** @scrutinizer ignore-unused */ Request $request): RedirectResponse
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $this->redirectResponseInternal(CheckoutPageControllerProvider::CHECKOUT_SUCCESS);
}
public function successAction(Request $request): RedirectResponse
public function successAction(/** @scrutinizer ignore-unused */ Request $request): RedirectResponse
public function failureAction(Request $request): RedirectResponse
public function failureAction(/** @scrutinizer ignore-unused */ Request $request): RedirectResponse
return $this->redirectResponseInternal(CheckoutPageControllerProvider::CHECKOUT_ERROR);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.