PhpReader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A readRaw() 0 6 1
1
<?php
2
/**
3
 * Composer plugin for config assembling
4
 *
5
 * @link      https://github.com/hiqdev/composer-config-plugin
6
 * @package   composer-config-plugin
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\composer\config\readers;
12
13
/**
14
 * PhpReader - reads PHP files.
15
 *
16
 * @author Andrii Vasyliev <[email protected]>
17
 */
18
class PhpReader extends AbstractReader
19
{
20
    public function readRaw($__path)
21
    {
22
        /// Expose variables to be used in configs
23
        extract($this->builder->getVars());
24
25
        return require $__path;
26
    }
27
}
28