Issues (359)

Yves/CrefoPay/Controller/CallbackController.php (3 issues)

1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Yves\CrefoPay\Controller;
9
10
use Spryker\Yves\Kernel\Controller\AbstractController;
11
use SprykerShop\Yves\CheckoutPage\Plugin\Provider\CheckoutPageControllerProvider;
12
use Symfony\Component\HttpFoundation\RedirectResponse;
13
use Symfony\Component\HttpFoundation\Request;
14
15
/**
16
 * @method \SprykerEco\Yves\CrefoPay\CrefoPayFactory getFactory()
17
 */
18
class CallbackController extends AbstractController
19
{
20
    /**
21
     * @param \Symfony\Component\HttpFoundation\Request $request
22
     *
23
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
24
     */
25
    public function confirmationAction(Request $request): RedirectResponse
0 ignored issues
show
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    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.

Loading history...
26
    {
27
        return $this->redirectResponseInternal(CheckoutPageControllerProvider::CHECKOUT_SUCCESS);
28
    }
29
30
    /**
31
     * @param \Symfony\Component\HttpFoundation\Request $request
32
     *
33
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
34
     */
35
    public function successAction(Request $request): RedirectResponse
0 ignored issues
show
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

35
    public function successAction(/** @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.

Loading history...
36
    {
37
        return $this->redirectResponseInternal(CheckoutPageControllerProvider::CHECKOUT_SUCCESS);
38
    }
39
40
    /**
41
     * @param \Symfony\Component\HttpFoundation\Request $request
42
     *
43
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
44
     */
45
    public function failureAction(Request $request): RedirectResponse
0 ignored issues
show
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

45
    public function failureAction(/** @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.

Loading history...
46
    {
47
        return $this->redirectResponseInternal(CheckoutPageControllerProvider::CHECKOUT_ERROR);
48
    }
49
}
50