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.

Logger::channel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
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;
5
6
use Innmind\AMQP\Client as ClientInterface;
7
use Psr\Log\LoggerInterface;
8
9
final class Logger implements ClientInterface
10
{
11
    private $client;
12
    private $logger;
13
14 4
    public function __construct(
15
        ClientInterface $client,
16
        LoggerInterface $logger
17
    ) {
18 4
        $this->client = $client;
19 4
        $this->logger = $logger;
20 4
    }
21
22 2
    public function channel(): Channel
23
    {
24 2
        return new Channel\Logger(
25 2
            $this->client->channel(),
26 2
            $this->logger
27
        );
28
    }
29
30 2
    public function closed(): bool
31
    {
32 2
        return $this->client->closed();
33
    }
34
35 2
    public function close(): void
36
    {
37 2
        $this->client->close();
38 2
    }
39
}
40