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