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.

NullBasic::consume()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Client\Channel\Basic;
5
6
use Innmind\AMQP\{
7
    Client\Channel\Basic as BasicInterface,
8
    Model\Basic\Ack,
9
    Model\Basic\Cancel,
10
    Model\Basic\Consume,
11
    Model\Basic\Get as GetCommand,
12
    Model\Basic\Publish,
13
    Model\Basic\Qos,
14
    Model\Basic\Recover,
15
    Model\Basic\Reject,
16
    Model\Basic\Message,
17
};
18
19
final class NullBasic implements BasicInterface
20
{
21 2
    public function ack(Ack $command): BasicInterface
22
    {
23 2
        return $this;
24
    }
25
26 2
    public function cancel(Cancel $command): BasicInterface
27
    {
28 2
        return $this;
29
    }
30
31 2
    public function consume(Consume $command): Consumer
32
    {
33 2
        return new Consumer\NullConsumer;
34
    }
35
36 2
    public function get(GetCommand $command): Get
37
    {
38 2
        return new Get\GetEmpty;
39
    }
40
41 2
    public function publish(Publish $command): BasicInterface
42
    {
43 2
        return $this;
44
    }
45
46 2
    public function qos(Qos $command): BasicInterface
47
    {
48 2
        return $this;
49
    }
50
51 2
    public function recover(Recover $command): BasicInterface
52
    {
53 2
        return $this;
54
    }
55
56 2
    public function reject(Reject $command): BasicInterface
57
    {
58 2
        return $this;
59
    }
60
}
61