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 — develop ( e4addc...44f5b4 )
by Baptiste
23:22
created

NullBasic   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 2
dl 0
loc 42
ccs 16
cts 16
cp 1
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A ack() 0 4 1
A cancel() 0 4 1
A consume() 0 4 1
A get() 0 4 1
A publish() 0 4 1
A qos() 0 4 1
A recover() 0 4 1
A reject() 0 4 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 1
    public function ack(Ack $command): BasicInterface
22
    {
23 1
        return $this;
24
    }
25
26 1
    public function cancel(Cancel $command): BasicInterface
27
    {
28 1
        return $this;
29
    }
30
31 1
    public function consume(Consume $command): Consumer
32
    {
33 1
        return new Consumer\NullConsumer;
34
    }
35
36 1
    public function get(GetCommand $command): Get
37
    {
38 1
        return new Get\GetEmpty;
39
    }
40
41 1
    public function publish(Publish $command): BasicInterface
42
    {
43 1
        return $this;
44
    }
45
46 1
    public function qos(Qos $command): BasicInterface
47
    {
48 1
        return $this;
49
    }
50
51 1
    public function recover(Recover $command): BasicInterface
52
    {
53 1
        return $this;
54
    }
55
56 1
    public function reject(Reject $command): BasicInterface
57
    {
58 1
        return $this;
59
    }
60
}
61