Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 3 | public function get(string $dotPath, $default = null) |
|
26 | { |
||
27 | 3 | list($name) = explode('.', $dotPath, 2); |
|
28 | |||
29 | 3 | if (!isset($this->config[$name])) { |
|
30 | 3 | $this->config[$name] = $this->loader->load("{$this->path}/$name"); |
|
31 | } |
||
32 | |||
33 | 3 | return array_path($this->config, $dotPath, $default); |
|
34 | } |
||
35 | |||
41 |