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.

CircuitBreakerListener::onCircuitBreaker()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace CircuitBreakerBundle\Listener;
4
5
use CircuitBreakerBundle\Event\CircuitBreakerEvent;
6
use CircuitBreakerBundle\Service\CircuitBreakerService;
7
8
class CircuitBreakerListener
9
{
10
    /**
11
     * @var CircuitBreakerService
12
     */
13
    private $circuitBreaker;
14
15
    /**
16
     * @param CircuitBreakerService $circuitBreaker
17
     */
18 1
    public function __construct(CircuitBreakerService $circuitBreaker)
19
    {
20 1
        $this->circuitBreaker = $circuitBreaker;
21 1
    }
22
23
    /**
24
     * @param CircuitBreakerEvent $event
25
     */
26 1
    public function onCircuitBreaker(CircuitBreakerEvent $event)
27
    {
28 1
        $this->circuitBreaker->save($event->getKey(), $event->getStatus());
29 1
    }
30
}
31