diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 05250ca3ab4..31cc5c3b6f3 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -189,12 +189,12 @@ if (empty($reshook)) {
$objectutil->socid = $socid;
$result = $objectutil->createFromClone($user, $id);
if ($result > 0) {
- header("Location: ".$_SERVER['PHP_SELF'].'?facid='.$result);
- exit();
- } else {
- $langs->load("errors");
- setEventMessages($object->error, $object->errors, 'errors');
- $action = '';
+ header("Location: ".$_SERVER['PHP_SELF'].'?facid='.$result);
+ exit();
+ } else {
+ $langs->load("errors");
+ setEventMessages($object->error, $object->errors, 'errors');
+ $action = '';
}
} // Change status of invoice
elseif ($action == 'reopen' && $usercanreopen) {
diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php
index 3e898a83e7d..4fa2f87f636 100644
--- a/htdocs/core/class/html.formcompany.class.php
+++ b/htdocs/core/class/html.formcompany.class.php
@@ -1007,8 +1007,7 @@ class FormCompany extends Form
{
global $conf, $langs;
- if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && !empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->fournisseur->enabled))
- {
+ if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && !empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->fournisseur->enabled)) {
return '' ;
}
@@ -1035,8 +1034,7 @@ class FormCompany extends Form
if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) {
$out .= '';
}
- if (!empty($conf->fournisseur->enabled))
- {
+ if (!empty($conf->fournisseur->enabled)) {
$out .= '';
}
$out .= '';
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index 165ccd11458..07dc55627d0 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -244,20 +244,17 @@ if (!empty($conf->projet->enabled)) {
if (!empty($conf->contrat->enabled)) {
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."contrat as c on f.fk_contrat = c.rowid";
}
-if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label']))
-{
+if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element."_extrafields as ef on (f.rowid = ef.fk_object)";
}
-if (empty($conf->global->FICHINTER_DISABLE_DETAILS) && $atleastonefieldinlines)
-{
+if (empty($conf->global->FICHINTER_DISABLE_DETAILS) && $atleastonefieldinlines) {
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."fichinterdet as fd ON fd.fk_fichinter = f.rowid";
}
// Add table from hooks
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object); // Note that $action and $object may have been modified by hook
$sql .= $hookmanager->resPrint;
-if (!$user->rights->societe->client->voir && empty($socid))
-{
+if (!$user->rights->societe->client->voir && empty($socid)) {
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
}
$sql .= ", ".MAIN_DB_PREFIX."societe as s";