Passed
Push — master ( ac97c7...0a1d23 )
by Stream
09:03 queued 05:27
created
src/Controllers/RenameController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             return parent::error('folder-alnum');
38 38
         }
39 39
         else if (config('lfm.alphanumeric_filename') && preg_match('/[^.\w-]/i', $new_name)) {
40
-	        return parent::error('file-alnum');
40
+            return parent::error('file-alnum');
41 41
         } elseif ($this->lfm->setName($new_name)->exists()) {
42 42
             return parent::error('rename');
43 43
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
 
36 36
         if ($is_directory && config('lfm.alphanumeric_directory') && preg_match('/[^\w-]/i', $new_name)) {
37 37
             return parent::error('folder-alnum');
38
-        }
39
-        else if (config('lfm.alphanumeric_filename') && preg_match('/[^.\w-]/i', $new_name)) {
38
+        } else if (config('lfm.alphanumeric_filename') && preg_match('/[^.\w-]/i', $new_name)) {
40 39
 	        return parent::error('file-alnum');
41 40
         } elseif ($this->lfm->setName($new_name)->exists()) {
42 41
             return parent::error('rename');
Please login to merge, or discard this patch.