Apply fixes from StyleCI (#1242)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Yury Pikhtarev 2023-12-20 22:49:00 +04:00 committed by GitHub
commit c57233414f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -738,10 +738,13 @@ class Attach
switch($_FILES['fileupload']['error']) {
case UPLOAD_ERR_NO_FILE:
bb_die('No file content sent');
// no break
case UPLOAD_ERR_INI_SIZE:
bb_die('upload_max_filesize setting: ' . ini_get('upload_max_filesize'));
// no break
case UPLOAD_ERR_CANT_WRITE:
bb_die('Failed to write file to disk, check permissions');
// no break
case UPLOAD_ERR_PARTIAL:
bb_die('The uploaded file was only partially uploaded');
}