JsonConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A readConfig() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BlueEvent\Event\Config;
6
7
use Laminas\Config\Reader\Json;
8
9
class JsonConfig implements ConfigReader
10
{
11
    /**
12
     * @param string $path
13
     * @return array
14
     */
15 2
    public function readConfig(string $path): array
16
    {
17 2
        $reader = new Json();
18 2
        return $reader->fromFile($path);
19
    }
20
}
21