Passed
Push — dev5 ( eaf296...ac9b51 )
by Ron
07:27
created
app/Console/Commands/backupRestore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $this->bar->advance();
89 89
         $fileParts = pathinfo($this->argument('filename'));
90 90
         $this->baseName = $fileParts['filename'];
91
-        $this->archive = Zip::open(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR.$this->argument('filename'));
91
+        $this->archive = Zip::open(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.$this->argument('filename'));
92 92
         // if (!$this->archive->has('version.txt')) {
93 93
         //     $this->error('THIS IS NOT A VALID TECH BENCH BACKUP');
94 94
         //     $this->error('Exiting');
Please login to merge, or discard this patch.
app/Console/Commands/backupRun.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         //  Create the archive and place the version file in it
84 84
         $this->zip = Zip::create(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.$backupName);
85 85
         $this->bar->advance();
86
-        $this->zip->add(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'version.txt');
86
+        $this->zip->add(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'version.txt');
87 87
         $this->bar->advance();
88 88
         $this->zip->add(base_path().DIRECTORY_SEPARATOR.'.env');
89 89
         $this->bar->advance();
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
         $process = new Process('mysqldump tb-dev5-data -u root');
116 116
         $process->run();
117 117
 
118
-        File::put(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'database.sql', $process->getOutput());
118
+        File::put(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'database.sql', $process->getOutput());
119 119
         $this->bar->advance();
120
-        $this->zip->add(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'database.sql');
120
+        $this->zip->add(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'database.sql');
121 121
         $this->bar->advance();
122 122
     }
123 123
 
Please login to merge, or discard this patch.