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   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 40
ccs 16
cts 16
cp 1
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A qos() 0 3 1
A consume() 0 3 1
A ack() 0 3 1
A reject() 0 3 1
A recover() 0 3 1
A get() 0 3 1
A publish() 0 3 1
A cancel() 0 3 1
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