@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $temp = $request->files->get('file'); |
| 24 | 24 | |
| 25 | 25 | // Verify file extension |
| 26 | - if ( !$temp instanceof UploadedFile |
|
| 26 | + if (!$temp instanceof UploadedFile |
|
| 27 | 27 | || !in_array(strtolower($temp->getClientOriginalExtension()), ["gif", "jpg", "png"])) { |
| 28 | 28 | throw new midcom_error('Invalid extension.'); |
| 29 | 29 | } |