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.
Passed
Push — master ( 4b3d26...06dcf5 )
by Enjoys
12:36 queued 13s
created

FalseType   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A isPossible() 0 6 2
A getCastedValue() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace Enjoys\Dotenv\Types;
7
8
9
final class FalseType implements TypeCastInterface
10
{
11 23
    public function __construct(private string $value)
12
    {
13
14
    }
15
16 23
    public function isPossible(): bool
17
    {
18 23
        if (str_starts_with($this->value, '*false')){
19 2
            return true;
20
        }
21 23
        return strtolower($this->value) === 'false';
22
    }
23
24 9
    public function getCastedValue(): bool
25
    {
26 9
        return false;
27
    }
28
}
29