Completed
Push — master ( 717b25...01a83d )
by Jan
03:55
created
src/Services/AttachmentHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if ($fs->isAbsolutePath($tmp_base_path)) {
55 55
             $this->base_path = $tmp_base_path;
56 56
         } else {
57
-            $this->base_path = realpath($kernel->getProjectDir() . $tmp_base_path);
57
+            $this->base_path = realpath($kernel->getProjectDir().$tmp_base_path);
58 58
         }
59 59
     }
60 60
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         $sz = 'BKMGTP';
126 126
         $factor = (int) floor((strlen($bytes) - 1) / 3);
127
-        return sprintf("%.{$decimals}f", $bytes / 1024 ** $factor) . @$sz[$factor];
127
+        return sprintf("%.{$decimals}f", $bytes / 1024 ** $factor).@$sz[$factor];
128 128
     }
129 129
 
130 130
 }
131 131
\ No newline at end of file
Please login to merge, or discard this patch.
src/Entity/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
222 222
             $scheme = parse_url($string, PHP_URL_SCHEME);
223 223
             if ($scheme !== 'http' && $scheme !== 'https') {
224
-                return false;   //All other schemes are not valid.
224
+                return false; //All other schemes are not valid.
225 225
             }
226 226
         }
227 227
         if ($path_required) {
Please login to merge, or discard this patch.