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::handle()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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