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

NullQueue   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 30
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A declare() 0 4 1
A delete() 0 4 1
A bind() 0 4 1
A unbind() 0 4 1
A purge() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Client\Channel\Queue;
5
6
use Innmind\AMQP\{
7
    Client\Channel\Queue as QueueInterface,
8
    Model\Queue\Declaration,
9
    Model\Queue\DeclareOk,
10
    Model\Queue\Deletion,
11
    Model\Queue\DeleteOk,
12
    Model\Queue\Binding,
13
    Model\Queue\Unbinding,
14
    Model\Queue\Purge,
15
    Model\Queue\PurgeOk
16
};
17
18
final class NullQueue implements QueueInterface
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23 1
    public function declare(Declaration $command): ?DeclareOk
0 ignored issues
show
Coding Style introduced by
Possible parse error: non-abstract method defined as abstract
Loading history...
24
    {
25 1
        return null;
26
    }
27
28 1
    public function delete(Deletion $command): ?DeleteOk
29
    {
30 1
        return null;
31
    }
32
33 1
    public function bind(Binding $command): QueueInterface
34
    {
35 1
        return $this;
36
    }
37
38 1
    public function unbind(Unbinding $command): QueueInterface
39
    {
40 1
        return $this;
41
    }
42
43 1
    public function purge(Purge $command): ?PurgeOk
44
    {
45 1
        return null;
46
    }
47
}
48