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