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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A ipnAction() 0 7 2
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