FileIo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A existsFile() 0 3 1
A include() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\Config;
6
7
final class FileIo implements FileIoInterface
8
{
9 64
    public function existsFile(string $filePath): bool
10
    {
11 64
        return file_exists($filePath);
12
    }
13
14 16
    public function include(string $filePath): mixed
15
    {
16
        /** @psalm-suppress UnresolvableInclude */
17 16
        return include $filePath;
18
    }
19
}
20