Short list syntax can be used

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 15:21:55 +03:00
commit 742575bb56
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
7 changed files with 10 additions and 10 deletions

View file

@ -103,13 +103,13 @@ function create_thumbnail($source, $new_file, $mimetype)
return false;
}
list($width, $height, $type, ) = getimagesize($source);
[$width, $height, $type,] = getimagesize($source);
if (!$width || !$height) {
return false;
}
list($new_width, $new_height) = get_img_size_format($width, $height);
[$new_width, $new_height] = get_img_size_format($width, $height);
$tmp_path = $old_file = '';