Total Complexity | 8 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 88.89% |
Changes | 0 |
1 | <?php |
||
16 | final class PhpConfigReader implements ConfigReaderInterface |
||
17 | { |
||
18 | /** |
||
19 | * @return array<string,mixed> |
||
20 | */ |
||
21 | 22 | public function read(string $absolutePath): array |
|
52 | } |
||
53 | |||
54 | 22 | private function canRead(string $absolutePath): bool |
|
55 | { |
||
56 | 22 | $extension = pathinfo($absolutePath, PATHINFO_EXTENSION); |
|
57 | |||
58 | 22 | return $extension === 'php' && file_exists($absolutePath); |
|
59 | } |
||
60 | |||
61 | 21 | private function triggerEvent(GacelaEventInterface $event): void |
|
64 | } |
||
65 | } |
||
66 |