Passed
Push — master ( 2c5ae8...8b1378 )
by Darko
03:19
created
app/Console/Commands/InstallNntmux.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
             }
54 54
         }
55 55
 
56
-        if (! $yesMode) {
57
-            if (! $this->confirm('Are you sure you want to install NNTmux? This will wipe your database!!')) {
56
+        if (!$yesMode) {
57
+            if (!$this->confirm('Are you sure you want to install NNTmux? This will wipe your database!!')) {
58 58
                 $this->info('Installation aborted by user.');
59 59
                 exit;
60 60
             }
@@ -97,33 +97,33 @@  discard block
 block discarded – undo
97 97
         $zip_path = config('nntmux_settings.tmp_unzip_path');
98 98
         $unrar_path = config('nntmux.tmp_unrar_path');
99 99
 
100
-        if (! File::isWritable($nzb_path)) {
100
+        if (!File::isWritable($nzb_path)) {
101 101
             $this->warn($nzb_path.' is not writable. Please fix folder permissions');
102 102
 
103 103
             return false;
104 104
         }
105 105
 
106
-        if (! file_exists($unrar_path)) {
106
+        if (!file_exists($unrar_path)) {
107 107
             $this->info('Creating missing '.$unrar_path.' folder');
108
-            if (! @File::makeDirectory($unrar_path) && ! File::isDirectory($unrar_path)) {
108
+            if (!@File::makeDirectory($unrar_path) && !File::isDirectory($unrar_path)) {
109 109
                 throw new \RuntimeException('Unable to create '.$unrar_path.' folder');
110 110
             }
111 111
             $this->info('Folder '.$unrar_path.' successfully created');
112 112
         }
113 113
 
114
-        if (! is_writable($unrar_path)) {
114
+        if (!is_writable($unrar_path)) {
115 115
             $this->warn($unrar_path.' is not writable. Please fix folder permissions');
116 116
 
117 117
             return false;
118 118
         }
119 119
 
120
-        if (! File::isWritable($covers_path)) {
120
+        if (!File::isWritable($covers_path)) {
121 121
             $this->warn($covers_path.' is not writable. Please fix folder permissions');
122 122
 
123 123
             return false;
124 124
         }
125 125
 
126
-        if (! File::isWritable($zip_path)) {
126
+        if (!File::isWritable($zip_path)) {
127 127
             $this->warn($zip_path.' is not writable. Please fix folder permissions');
128 128
 
129 129
             return false;
Please login to merge, or discard this patch.