@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function setAllowedExtensions(array $ext) |
| 97 | 97 | { |
| 98 | - $this->allowed_extensions = array_map(function ($value) { |
|
| 98 | + $this->allowed_extensions = array_map(function($value) { |
|
| 99 | 99 | return mb_strtolower($value); |
| 100 | 100 | }, $ext); |
| 101 | 101 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | if ($this->uploadWithError()) { |
| 138 | - $msg = $this->translator->getMessage('errors.upload.'.$this->upload->getError()); |
|
| 138 | + $msg = $this->translator->getMessage('errors.upload.' . $this->upload->getError()); |
|
| 139 | 139 | throw new RuntimeException($msg, 500); |
| 140 | 140 | } |
| 141 | 141 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | if ($this->getAdapter() instanceof Local) { |
| 30 | 30 | $base = $this->getAdapter()->getPathPrefix(); |
| 31 | - $path = $this->setPathLocal($base, $path); |
|
| 31 | + $path = $this->setPathLocal($base, $path); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $this->getAdapter()->setPathPrefix($path); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public static function createFromArray(array $data, Translator $translator = null) |
| 23 | 23 | { |
| 24 | - $translator = $translator ?: Translator::locate(); |
|
| 24 | + $translator = $translator ?: Translator::locate(); |
|
| 25 | 25 | $arr = ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => null, 'size' => null]; |
| 26 | 26 | |
| 27 | 27 | $compare = array_diff_key($arr, $data); |