| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function locateConfigFor($name) { |
||
| 22 | // Check direct or cached result |
||
| 23 | $config = $this->configFor($name); |
||
| 24 | if(!$config) { |
||
| 25 | return null; |
||
| 26 | } |
||
| 27 | |||
| 28 | // If config is in `%$Source` format then inherit from the named config |
||
| 29 | if(is_string($config) && stripos($config, '%$') === 0) { |
||
| 30 | $name = substr($config, 2); |
||
| 31 | return $this->locateConfigFor($name); |
||
| 32 | } |
||
| 33 | |||
| 34 | // Return the located config |
||
| 35 | return $config; |
||
| 36 | } |
||
| 37 | |||
| 55 |