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.
Completed
Push — release-1.x ( a5e082...76423c )
by Boy
05:57 queued 02:54
created

CannotWriteToPrimaryLogExceptionExceptionListener   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubscribedEvents() 0 4 1
A onKernelException() 0 3 1
1
<?php
2
3
namespace Surfnet\StepupBundle\EventListener;
4
5
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
6
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
7
use Symfony\Component\HttpKernel\KernelEvents;
8
9
class CannotWriteToPrimaryLogExceptionExceptionListener implements EventSubscriberInterface
10
{
11
    public static function getSubscribedEvents()
12
    {
13
        return [KernelEvents::EXCEPTION, 'onKernelException'];
14
    }
15
16
    /**
17
     * Displays an error message to the user/client and attempts to mail the administrator to inform him/her about the
18
     * final throes of our application.
19
     *
20
     * @param GetResponseForExceptionEvent $event
21
     */
22
    public function onKernelException(GetResponseForExceptionEvent $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
}
26