Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-02-20 12:34:51 +01:00
parent ac5e9ce5b3
commit e73d83767c
2 changed files with 6 additions and 6 deletions

View File

@ -173,7 +173,7 @@ if ($resql)
if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.urlencode($limit); if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.urlencode($limit);
if ($search_ref) $param .= '&search_ref='.urlencode($search_ref); if ($search_ref) $param .= '&search_ref='.urlencode($search_ref);
if ($search_label) $param .= '&search_label='.urlencode($search_label); if ($search_label) $param .= '&search_label='.urlencode($search_label);
if ($search_project_ref >= 0) $param.="&search_project_ref=".urlencode($search_project_ref); if ($search_project_ref >= 0) $param.="&search_project_ref=".urlencode($search_project_ref);
if ($search_amount) $param .= '&search_amount='.urlencode($search_amount); if ($search_amount) $param .= '&search_amount='.urlencode($search_amount);
if ($search_typeid) $param .= '&search_typeid='.urlencode($search_typeid); if ($search_typeid) $param .= '&search_typeid='.urlencode($search_typeid);
if ($search_status != '' && $search_status != '-1') $param .= '&search_status='.urlencode($search_status); if ($search_status != '' && $search_status != '-1') $param .= '&search_status='.urlencode($search_status);
@ -282,7 +282,7 @@ if ($resql)
$projectstatic->title=$obj->project_label; $projectstatic->title=$obj->project_label;
} }
print '<tr class="oddeven">'; print '<tr class="oddeven">';
// Ref // Ref
print "<td>".$chargesociale_static->getNomUrl(1, '20')."</td>\n"; print "<td>".$chargesociale_static->getNomUrl(1, '20')."</td>\n";
@ -304,9 +304,9 @@ if ($resql)
print $projectstatic->getNomUrl(1); print $projectstatic->getNomUrl(1);
} }
print '</td>'; print '</td>';
if (!$i) $totalarray['nbfield']++; if (!$i) $totalarray['nbfield']++;
} }
// Date // Date
print '<td width="110" align="center">'.dol_print_date($db->jdate($obj->date_ech), 'day').'</td>'; print '<td width="110" align="center">'.dol_print_date($db->jdate($obj->date_ech), 'day').'</td>';
if (!$i) $totalarray['nbfield']++; if (!$i) $totalarray['nbfield']++;

View File

@ -865,7 +865,7 @@ class Contact extends CommonObject
{ {
$this->error = 'Fetch found several records. Rename one of contact to avoid duplicate.'; $this->error = 'Fetch found several records. Rename one of contact to avoid duplicate.';
dol_syslog($this->error, LOG_ERR); dol_syslog($this->error, LOG_ERR);
return 2; return 2;
} }
elseif ($num) // $num = 1 elseif ($num) // $num = 1
@ -952,7 +952,7 @@ class Contact extends CommonObject
// Retreive all extrafield // Retreive all extrafield
// fetch optionals attributes and labels // fetch optionals attributes and labels
$this->fetch_optionals(); $this->fetch_optionals();
// Load also alerts of this user // Load also alerts of this user
if ($user) if ($user)
{ {