GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DefaultController::ipnAction()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Lexik\Bundle\PayboxBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\Response;
7
8
/**
9
 * Class DefaultController
10
 *
11
 * @package Lexik\Bundle\PayboxBundle\Controller
12
 *
13
 * @author Lexik <[email protected]>
14
 * @author Olivier Maisonneuve <[email protected]>
15
 */
16
class DefaultController extends Controller
17
{
18
    /**
19
     * Instant Payment Notification action.
20
     * Here, presentation is anecdotal, the requesting server only looks at the http status.
21
     *
22
     * @return Response
23
     */
24
    public function ipnAction()
25
    {
26
        $payboxResponse = $this->container->get('lexik_paybox.response_handler');
27
        $result = $payboxResponse->verifySignature();
28
29
        return new Response($result ? 'OK' : 'KO');
30
    }
31
}
32