Fix PHPCS

This commit is contained in:
Laurent Destailleur 2021-06-18 00:59:18 +02:00
parent 10dadb2247
commit 88ff0e4795
2 changed files with 5 additions and 6 deletions

View File

@ -500,9 +500,7 @@ class Mailing extends CommonObject
$this->error = $this->db->lasterror(); $this->error = $this->db->lasterror();
return -1; return -1;
} }
} } else {
else
{
$this->db->rollback(); $this->db->rollback();
$this->error = $this->db->lasterror(); $this->error = $this->db->lasterror();
return -1; return -1;

View File

@ -542,7 +542,6 @@ class FactureRec extends CommonInvoice
$this->titre = $obj->title; // deprecated $this->titre = $obj->title; // deprecated
$this->title = $obj->title; $this->title = $obj->title;
$this->ref = $obj->title; $this->ref = $obj->title;
$this->ref_client = $obj->ref_client;
$this->suspended = $obj->suspended; $this->suspended = $obj->suspended;
$this->type = $obj->type; $this->type = $obj->type;
$this->datep = $obj->dp; $this->datep = $obj->dp;
@ -595,7 +594,9 @@ class FactureRec extends CommonInvoice
$this->multicurrency_total_tva = $obj->multicurrency_total_tva; $this->multicurrency_total_tva = $obj->multicurrency_total_tva;
$this->multicurrency_total_ttc = $obj->multicurrency_total_ttc; $this->multicurrency_total_ttc = $obj->multicurrency_total_ttc;
if ($this->statut == self::STATUS_DRAFT) $this->brouillon = 1; if ($this->statut == self::STATUS_DRAFT) {
$this->brouillon = 1;
}
// Retrieve all extrafield // Retrieve all extrafield
// fetch optionals attributes and labels // fetch optionals attributes and labels
@ -612,7 +613,7 @@ class FactureRec extends CommonInvoice
} }
return 1; return 1;
} else { } else {
$this->error = 'Bill with id '.$rowid.' or ref '.$ref.' not found sql='.$sql; $this->error = 'Bill with id '.$rowid.' or ref '.$ref.' not found';
dol_syslog('Facture::Fetch Error '.$this->error, LOG_ERR); dol_syslog('Facture::Fetch Error '.$this->error, LOG_ERR);
return -2; return -2;
} }