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.

InvokableListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
__invoke() 0 1 ?
A handle() 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\AbstractListener;
9
use League\Event\EventInterface;
10
use Noodle\State\State;
11
use Noodle\Stateful\Stateful;
12
use Noodle\Transition\Input\Input;
13
use League\Event\EventInterface as Event;
14
15
abstract class InvokableListener extends AbstractListener
16
{
17
    /**
18
     * Executes listener logic
19
     *
20
     * @param Event $event
21
     * @param Stateful $object
22
     * @param Context $context
23
     * @param Input $input
24
     * @param State $nextState
25
     *
26
     * @return void
27
     */
28
    abstract public function __invoke(Event $event, Stateful $object, Context $context, Input $input, State $nextState);
29
30
    /**
31
     * Proxy call to __invoke(...)
32
     *
33
     * @param Event $event
34
     */
35 6
    public function handle(EventInterface $event)
36
    {
37 6
        call_user_func_array($this, func_get_args());
38 5
    }
39
}
40