Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | private function fetch() |
||
52 | { |
||
53 | if ($this->items) { |
||
54 | return; |
||
55 | } |
||
56 | |||
57 | $config_values = static::configValues(); |
||
58 | |||
59 | $database_values = Schema::hasTable((new Setting())->getTable()) |
||
60 | ? Setting::all()->pluck('value', 'key')->toArray() |
||
61 | : []; |
||
62 | |||
63 | $this->items = array_merge($config_values, $database_values); |
||
64 | } |
||
73 |