mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Code Inspection: Ternary expression can be replaced with condition (#728)
This commit is contained in:
parent
4e40a4bcd4
commit
de076c80ef
13 changed files with 29 additions and 29 deletions
|
@ -79,7 +79,7 @@ function get_supported_image_types($type)
|
|||
}
|
||||
|
||||
return array(
|
||||
'gd' => ($new_type) ? true : false,
|
||||
'gd' => (bool)$new_type,
|
||||
'format' => $new_type,
|
||||
'version' => (function_exists('imagecreatetruecolor')) ? 2 : 1
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue