| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Anomaly\SettingsModule\Setting\Command; |
||
| 43 | public function handle(Repository $config, Resolver $resolver) |
||
| 44 | { |
||
| 45 | list($namespace, $key) = explode('::', $this->key); |
||
| 46 | |||
| 47 | if (!$fields = $config->get($namespace . '::settings/settings')) { |
||
| 48 | $fields = $config->get($namespace . '::settings'); |
||
| 49 | } |
||
| 50 | |||
| 51 | return $resolver->resolve(array_get($fields, $key . '.config.default_value', null)); |
||
| 52 | } |
||
| 53 | } |