Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | private function addSettings() |
||
52 | { |
||
53 | if (Schema::hasTable('system_settings')) { |
||
54 | $settings = [ |
||
55 | 'default_reading_speed' => Settings::DEFAULT_READING_SPEED, |
||
56 | 'rounding_up_enabled' => Settings::DEFAULT_ROUNDING_UP_ENABLED |
||
57 | ]; |
||
58 | |||
59 | DB::table('system_settings')->insert( |
||
60 | ['item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings)] |
||
61 | ); |
||
62 | } |
||
63 | } |
||
64 | } |
||
65 |