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 ( dc3756...ffde21 )
by Baptiste
06:26
created

Logger::publish()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 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
use Psr\Log\LoggerInterface;
19
20
final class Logger implements BasicInterface
21
{
22
    private $basic;
23
    private $logger;
24
25 3
    public function __construct(BasicInterface $basic, LoggerInterface $logger)
26
    {
27 3
        $this->basic = $basic;
28 3
        $this->logger = $logger;
29 3
    }
30
31 1
    public function ack(Ack $command): BasicInterface
32
    {
33 1
        $this->basic->ack($command);
34
35 1
        return $this;
36
    }
37
38 1
    public function cancel(Cancel $command): BasicInterface
39
    {
40 1
        $this->basic->cancel($command);
41
42 1
        return $this;
43
    }
44
45 1
    public function consume(Consume $command): Consumer
46
    {
47 1
        return new Consumer\Logger(
48 1
            $this->basic->consume($command),
49 1
            $this->logger
50
        );
51
    }
52
53 1
    public function get(GetCommand $command): Get
54
    {
55 1
        return new Get\Logger(
56 1
            $this->basic->get($command),
57 1
            $this->logger
58
        );
59
    }
60
61 1
    public function publish(Publish $command): BasicInterface
62
    {
63 1
        $this->basic->publish($command);
64
65 1
        return $this;
66
    }
67
68 1
    public function qos(Qos $command): BasicInterface
69
    {
70 1
        $this->basic->qos($command);
71
72 1
        return $this;
73
    }
74
75 1
    public function recover(Recover $command): BasicInterface
76
    {
77 1
        $this->basic->recover($command);
78
79 1
        return $this;
80
    }
81
82 1
    public function reject(Reject $command): BasicInterface
83
    {
84 1
        $this->basic->reject($command);
85
86 1
        return $this;
87
    }
88
}
89