Fix phpcs

This commit is contained in:
Laurent Destailleur 2018-03-11 17:57:58 +01:00
parent 7ffce2a28f
commit f0a0c8c3e5

View File

@ -1131,7 +1131,7 @@ class Ticketsup extends CommonObject
/**
* Return status label of object
*
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
*/
public function getLibStatut($mode = 0)
@ -1146,7 +1146,7 @@ class Ticketsup extends CommonObject
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
*/
public function LibStatut($statut, $mode = 0)
function LibStatut($statut, $mode = 0)
{
global $langs;
@ -1489,7 +1489,7 @@ class Ticketsup extends CommonObject
* Send notification of changes by email
*
* @param User $user User that create
* @param string $message Log message
* @param string $log_message Log message
* @return int <0 if KO, >0 if OK (number of emails sent)
*/
private function sendLogByEmail($user, $log_message)
@ -2099,7 +2099,7 @@ class Ticketsup extends CommonObject
/**
* Return id of all contacts for ticket
*
* @param int $exclude_self exclude_self Exclude current user form list
* @return array Array of contacts
*/
public function getTicketAllCustomerContacts()
{
@ -2138,7 +2138,8 @@ class Ticketsup extends CommonObject
$sendto = $obj->firstname . " " . $obj->lastname . " <" . $obj->email . ">";
$actiondefid = $obj->adid;
if (dol_strlen($sendto)) {
if (dol_strlen($sendto))
{
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$application = ($conf->global->MAIN_APPLICATION_TITLE ? $conf->global->MAIN_APPLICATION_TITLE : 'Dolibarr ERP/CRM');
@ -2242,9 +2243,10 @@ class Ticketsup extends CommonObject
* @param int $statut Status of lines to get (-1=all)
* @param string $source Source of contact: external or thirdparty (llx_socpeople) or internal (llx_user)
* @param int $list 0:Return array contains all properties, 1:Return array contains just id
* @param string $code Code
* @return array Array of contacts
*/
public function liste_contact($statut = -1, $source = 'external', $list = 0, $code = '')
function liste_contact($statut = -1, $source = 'external', $list = 0, $code = '')
{
global $langs;
@ -2454,12 +2456,12 @@ class Ticketsup extends CommonObject
}
/**
* Affiche la premiere photo du ticket
* Return if at least one photo is available
*
* @param string $sdir Repertoire a scanner
* @return boolean true si photo dispo, false sinon
* @param string $sdir Directory to scan
* @return boolean True if at least one photo is available, False if not
*/
public function is_photo_available($sdir)
function is_photo_available($sdir)
{
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
@ -2501,7 +2503,7 @@ class Ticketsup extends CommonObject
* @param int $nolink Do not add a href link to view enlarged imaged into a new tab
* @return string Html code to show photo. Number of photos shown is saved in this->nbphoto
*/
public function show_photos($sdir, $size = 0, $nbmax = 0, $nbbyrow = 5, $showfilename = 0, $showaction = 0, $maxHeight = 120, $maxWidth = 160, $nolink = 0)
function show_photos($sdir, $size = 0, $nbmax = 0, $nbbyrow = 5, $showfilename = 0, $showaction = 0, $maxHeight = 120, $maxWidth = 160, $nolink = 0)
{
global $conf, $user, $langs;