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.

RequestType::getRequestTypeEconomy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimPod\SmsManager;
6
7
use Consistence\Enum\Enum;
8
9
final class RequestType extends Enum
10
{
11
    public const REQUEST_TYPE_LOW     = 'lowcost';
12
    public const REQUEST_TYPE_ECONOMY = 'economy';
13
    public const REQUEST_TYPE_HIGH    = 'high';
14
15
    public static function getRequestTypeLow() : self
16
    {
17
        return self::get(self::REQUEST_TYPE_LOW);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_LOW) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
18
    }
19
20
    public static function getRequestTypeEconomy() : self
21
    {
22
        return self::get(self::REQUEST_TYPE_ECONOMY);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_ECONOMY) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
23
    }
24
25 1
    public static function getRequestTypeHigh() : self
26
    {
27 1
        return self::get(self::REQUEST_TYPE_HIGH);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_HIGH) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
28
    }
29
}
30