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