| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getWithMerge($key, $group, $prefix = '', $postfix = '.') |
||
| 22 | { |
||
| 23 | $configKey = "{$prefix}{$group}${postfix}{$key}"; |
||
| 24 | $result = $this->config->get($configKey, []); |
||
| 25 | if (!is_array($result)) { |
||
| 26 | throw new \UnexpectedValueException($configKey . ' must be a list of settings to apply.'); |
||
| 27 | } |
||
| 28 | $moreGeneralGroupname = $this->moreGeneralGroupName($group); |
||
| 29 | if ($moreGeneralGroupname) { |
||
| 30 | $result += $this->getWithMerge($key, $moreGeneralGroupname, $prefix, $postfix); |
||
| 31 | } |
||
| 32 | return $result; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |