Completed
Branch develop (343ae8)
by Michał
02:22
created

YamlConfig::readConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
3
namespace BlueEvent\Event\Config;
4
5
use Zend\Config\Reader\Yaml;
6
7
class YamlConfig implements ConfigReader
8
{
9
    /**
10
     * @param string $path
11
     * @return array
12
     */
13 2
    public function readConfig($path)
14
    {
15 2
        $reader = new Yaml(['Spyc','YAMLLoadString']);
16 2
        return $reader->fromFile($path);
17
    }
18
}
19