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 — master ( cb8968...43f345 )
by Márk
03:35
created

CallableReceiver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 4
cp 0.75
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1.0156
1
<?php
2
3
namespace Bernard\Receiver;
4
5
use Bernard\Message;
6
use Bernard\Receiver;
7
8
final class CallableReceiver implements Receiver
9
{
10
    /**
11
     * @var callable
12
     */
13
    private $callable;
14
15 11
    public function __construct(callable $callable)
16
    {
17 11
        $this->callable = $callable;
18 11
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 1
    public function receive(Message $message)
24
    {
25 1
        call_user_func($this->callable, $message);
26 1
    }
27
}
28