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.

ReportsTransitionFailures   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace Noodle\Listener;
6
7
use ArrayObject as Context;
8
use League\Event\EventInterface as Event;
9
use Noodle\State\State;
10
use Noodle\Stateful\Stateful;
11
use Noodle\Statemachine\Exception\StateTransitionFailed;
12
use Noodle\Transition\Input\Input;
13
14
class ReportsTransitionFailures extends InvokableListener
15
{
16
    /**
17
     * Throws an exception with details on the failed transition
18
     *
19
     * @param Event $event
20
     * @param Stateful $object
21
     * @param Context $context
22
     * @param Input $input
23
     * @param State $nextState
24
     */
25 1
    final public function __invoke(Event $event, Stateful $object, Context $context, Input $input, State $nextState)
26
    {
27 1
        throw new StateTransitionFailed($input, $object, $context, $nextState);
28
    }
29
}
30