Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | private function fetch() |
||
44 | { |
||
45 | if ($this->items) { |
||
46 | return; |
||
47 | } |
||
48 | |||
49 | $config_values = static::configValues(); |
||
50 | |||
51 | $database_values = Schema::hasTable((new Setting)->getTable()) |
||
52 | ? Setting::all()->pluck('value', 'key')->toArray() |
||
53 | : []; |
||
54 | |||
55 | $this->items = array_merge($config_values, $database_values); |
||
56 | } |
||
65 |