| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class SettingsDomain |
||
| 13 | { |
||
| 14 | // Update the Settings table in the database for a new system setting. |
||
| 15 | 12 | public function updateSettings($key, $value) |
|
| 16 | { |
||
| 17 | 12 | Settings::firstOrCreate( |
|
| 18 | 12 | ['key' => $key], |
|
| 19 | 12 | ['key' => $key, 'value' => $value] |
|
| 20 | 12 | )->update(['value' => $value]); |
|
| 21 | |||
| 22 | 12 | return true; |
|
| 23 | } |
||
| 24 | |||
| 25 | // Save a new application logo |
||
| 26 | 4 | public function saveNewLogo(UploadedFile $file) |
|
| 33 | } |
||
| 34 | } |
||
| 35 |