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