Passed
Push — master ( 336a24...a4f66d )
by Mihail
14:10
created
Apps/Controller/Api/Content.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         parent::before();
28 28
         $configs = AppRecord::getConfigs('app', 'Content');
29 29
         // prevent null-type config data
30
-        if ((int)$configs['gallerySize'] > 0) {
31
-            $this->maxSize = (int)$configs['gallerySize'] * 1024;
30
+        if ((int) $configs['gallerySize'] > 0) {
31
+            $this->maxSize = (int) $configs['gallerySize'] * 1024;
32 32
         }
33 33
 
34
-        if ((int)$configs['galleryResize'] > 0) {
35
-            $this->maxResize = (int)$configs['galleryResize'];
34
+        if ((int) $configs['galleryResize'] > 0) {
35
+            $this->maxResize = (int) $configs['galleryResize'];
36 36
         }
37 37
     }
38 38
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         // check file size
72 72
         if ($file->getSize() < 1 || $file->getSize() > $this->maxSize) {
73
-            throw new JsonException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize/1024)]));
73
+            throw new JsonException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize / 1024)]));
74 74
         }
75 75
 
76 76
         // check file extension
Please login to merge, or discard this patch.