Passed
Push — master ( 59950a...c6d7cc )
by Ron
02:46 queued 13s
created
app/Http/Controllers/Admin/BackupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
app/Console/Commands/TbBackupRestoreCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,8 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.