@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | parent::before(); |
34 | 34 | $configs = AppRecord::getConfigs('app', 'Content'); |
35 | 35 | // prevent null-type config data |
36 | - if ((int)$configs['gallerySize'] > 0) { |
|
37 | - $this->maxSize = (int)$configs['gallerySize'] * 1024; |
|
36 | + if ((int) $configs['gallerySize'] > 0) { |
|
37 | + $this->maxSize = (int) $configs['gallerySize'] * 1024; |
|
38 | 38 | } |
39 | 39 | |
40 | - if ((int)$configs['galleryResize'] > 0) { |
|
41 | - $this->maxResize = (int)$configs['galleryResize']; |
|
40 | + if ((int) $configs['galleryResize'] > 0) { |
|
41 | + $this->maxResize = (int) $configs['galleryResize']; |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | // check file size |
131 | 131 | if ($file->getSize() < 1 || $file->getSize() > $this->maxSize) { |
132 | - throw new ForbiddenException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize/1024)])); |
|
132 | + throw new ForbiddenException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize / 1024)])); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | // check file extension |