@@ -62,7 +62,7 @@ |
||
62 | 62 | public function store(BackupRequest $request) |
63 | 63 | { |
64 | 64 | $this->saveSettings('app.backups.enabled', $request->enabled); |
65 | - $this->saveSettings('app.backups.number', $request->number); |
|
65 | + $this->saveSettings('app.backups.number', $request->number); |
|
66 | 66 | |
67 | 67 | return back()->with([ |
68 | 68 | 'message' => 'Automatic Backup Settings Updated', |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | if(Storage::disk('backups')->exists($this->basename.'backup.sql')) |
240 | 240 | { |
241 | 241 | $this->line('Restoring database'); |
242 | - try{ |
|
242 | + try { |
|
243 | 243 | |
244 | 244 | DB::connection(DB::getDefaultConnection()) |
245 | 245 | ->getSchemaBuilder() |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | |
278 | 278 | foreach($files as $file) |
279 | 279 | { |
280 | - $data = Storage::disk('backups')->get($file); |
|
280 | + $data = Storage::disk('backups')->get($file); |
|
281 | 281 | // Trim the file path to the correct new path |
282 | 282 | // If this is a Windows server, the directory separator will be incorrect |
283 | 283 | $rename = str_replace(str_replace('\\', '/', $this->basename).$folder, '', $file); |
@@ -239,7 +239,8 @@ |
||
239 | 239 | if(Storage::disk('backups')->exists($this->basename.'backup.sql')) |
240 | 240 | { |
241 | 241 | $this->line('Restoring database'); |
242 | - try{ |
|
242 | + try |
|
243 | + { |
|
243 | 244 | |
244 | 245 | DB::connection(DB::getDefaultConnection()) |
245 | 246 | ->getSchemaBuilder() |