Test Failed
Push — master ( b5ddc7...73c405 )
by Konstantins
05:51
created

ConfigFactory::createFromFile()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 16
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 6.6

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 9
cts 15
cp 0.6
rs 8.8571
c 0
b 0
f 0
cc 5
eloc 11
nc 4
nop 1
crap 6.6
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Config;
4
5
use Venta\Contracts\Config\Config as ConfigContract;
6
use Venta\Contracts\Config\ConfigFactory as ConfigFactoryContract;
7
8
/**
9
 * Class ConfigFactory
10
 *
11
 * @package Venta\Config
12
 */
13
class ConfigFactory implements ConfigFactoryContract
14
{
15
    /**
16
     * @inheritDoc
17
     */
18
    public function create(array $data): ConfigContract
19
    {
20 4
        return new Config($data);
21
    }
22
}