@@ -27,12 +27,12 @@ discard block |
||
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 |
||
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 |