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 — master ( b51680...d4b37a )
by Cees-Jan
02:33
created

ProcSelfFd::isSupported()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 2
nc 2
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace WyriHaximus\FileDescriptors;
4
5
use Tivie\OS\Detector;
6
7
final class ProcSelfFd implements ListerInterface
8
{
9
    private const PATH = '/proc/self/fd';
10
11 1
    public function list(): iterable
12
    {
13 1
        yield from ScanDir::scan(self::PATH);
14 1
    }
15
16 1
    public function isSupported(): bool
17
    {
18 1
        return (new Detector())->isUnixLike() && \file_exists(self::PATH);
19
    }
20
}
21