Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
20 | class Defines extends Config |
||
21 | { |
||
22 | protected function loadFile($path) |
||
30 | } |
||
31 | |||
32 | public function buildRequires() |
||
33 | { |
||
34 | $res = []; |
||
35 | foreach ($this->values as $path) { |
||
36 | $res[] = "require_once '$path';"; |
||
37 | } |
||
38 | |||
39 | return implode("\n", $res); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $path |
||
44 | * @param array $data |
||
45 | * @throws \ReflectionException |
||
46 | * @throws \hiqdev\composer\config\exceptions\FailedWriteException |
||
47 | */ |
||
48 | protected function writeFile($path, array $data) |
||
51 | } |
||
52 | } |
||
53 |