Fixing style errors.

This commit is contained in:
stickler-ci 2022-09-15 08:05:40 +00:00
parent 56cb4fed7f
commit d4e57f34d9

View File

@ -1727,7 +1727,7 @@ class Ticket extends CommonObject
* @param boolean $send_email Whether the message is sent by email * @param boolean $send_email Whether the message is sent by email
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
public function createTicketMessage($user, $notrigger = 0, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $send_email = FALSE) public function createTicketMessage($user, $notrigger = 0, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $send_email = false)
{ {
global $conf, $langs; global $conf, $langs;
$error = 0; $error = 0;
@ -1753,7 +1753,7 @@ class Ticket extends CommonObject
if ($this->private) { if ($this->private) {
$actioncomm->code = 'TICKET_MSG_PRIVATE'; $actioncomm->code = 'TICKET_MSG_PRIVATE';
} }
if ($send_email){ if ($send_email) {
$actioncomm->type_code = 'AC_EMAIL'; $actioncomm->type_code = 'AC_EMAIL';
} }
$actioncomm->socid = $this->socid; $actioncomm->socid = $this->socid;