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 ( a71c17...924269 )
by Baptiste
02:08
created

ExpectedMethodFrame   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Exception;
5
6
use Innmind\AMQP\Transport\Frame\Type;
7
8
final class ExpectedMethodFrame extends RuntimeException
9
{
10
    public function __construct(Type $type)
11
    {
12
        parent::__construct(sprintf(
13
            'Expected method but got %s',
14
            $type === Type::header() ? 'header' : 'body'
15
        ));
16
    }
17
}
18