Code Inspection: Ternary expression can be replaced with condition (#728)

This commit is contained in:
Roman Kelesidis 2023-05-29 00:32:36 +07:00 committed by GitHub
commit de076c80ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 29 additions and 29 deletions

View file

@ -555,7 +555,7 @@ switch ($mode) {
'POSTER_NAME' => wbr($poster),
'POST_DATE' => $post_date,
'MESSAGE' => $message,
'CHECKBOX' => (defined('BEGIN_CHECKBOX')) ? true : false,
'CHECKBOX' => defined('BEGIN_CHECKBOX'),
'POST_ID' => $post_id,
'ROW_ID' => $i,
'CB_ID' => 'cb_' . $i,