Passed
Push — master ( a1524f...4d2cc5 )
by Darko
07:18
created
app/Http/Controllers/Admin/AdminNzbController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
         switch ($errorCode) {
115 115
             case UPLOAD_ERR_INI_SIZE:
116 116
                 return "The file '{$fileName}' exceeds the upload_max_filesize directive (".
117
-                       ini_get('upload_max_filesize').').';
117
+                        ini_get('upload_max_filesize').').';
118 118
             case UPLOAD_ERR_FORM_SIZE:
119 119
                 return "The file '{$fileName}' exceeds the MAX_FILE_SIZE directive specified in the HTML form.";
120 120
             case UPLOAD_ERR_PARTIAL:
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             $deleteNZB = true;
27 27
 
28 28
             // Get the list of NZB files from php /tmp folder if nzb files were uploaded.
29
-            if (isset($_FILES['uploadedfiles']) && ! empty($_FILES['uploadedfiles']['name'][0])) {
29
+            if (isset($_FILES['uploadedfiles']) && !empty($_FILES['uploadedfiles']['name'][0])) {
30 30
                 $maxFileSize = min(
31 31
                     $this->convertToBytes(ini_get('upload_max_filesize')),
32 32
                     $this->convertToBytes(ini_get('post_max_size'))
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
                 // Get the path the user set in the browser if he put one.
56 56
                 $path = ($request->has('folder') ? $request->input('folder') : '');
57
-                if (! Str::endsWith($path, '/')) {
57
+                if (!Str::endsWith($path, '/')) {
58 58
                     $path .= '/';
59 59
                 }
60 60
 
Please login to merge, or discard this patch.