Merge pull request #27912 from thibdrev/patch-8

qual: phpstan for htdocs/expensereport/class/paymentexpensereport.class.php
This commit is contained in:
Laurent Destailleur 2024-01-31 20:36:21 +01:00 committed by GitHub
commit 85aab4770e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,13 +134,13 @@ class PaymentExpenseReport extends CommonObject
// Clean parameters
if (isset($this->fk_expensereport)) {
$this->fk_expensereport = trim($this->fk_expensereport);
$this->fk_expensereport = (int) $this->fk_expensereport;
}
if (isset($this->amount)) {
$this->amount = trim($this->amount);
}
if (isset($this->fk_typepayment)) {
$this->fk_typepayment = trim($this->fk_typepayment);
$this->fk_typepayment = (int) $this->fk_typepayment;
}
if (isset($this->num_payment)) {
$this->num_payment = trim($this->num_payment);
@ -290,13 +290,13 @@ class PaymentExpenseReport extends CommonObject
// Clean parameters
if (isset($this->fk_expensereport)) {
$this->fk_expensereport = trim($this->fk_expensereport);
$this->fk_expensereport = (int) $this->fk_expensereport;
}
if (isset($this->amount)) {
$this->amount = trim($this->amount);
}
if (isset($this->fk_typepayment)) {
$this->fk_typepayment = trim($this->fk_typepayment);
$this->fk_typepayment = (int) $this->fk_typepayment;
}
if (isset($this->num_payment)) {
$this->num_payment = trim($this->num_payment);
@ -305,13 +305,13 @@ class PaymentExpenseReport extends CommonObject
$this->note = trim($this->note);
}
if (isset($this->fk_bank)) {
$this->fk_bank = trim($this->fk_bank);
$this->fk_bank = (int) $this->fk_bank;
}
if (isset($this->fk_user_creat)) {
$this->fk_user_creat = trim($this->fk_user_creat);
$this->fk_user_creat = (int) $this->fk_user_creat;
}
if (isset($this->fk_user_modif)) {
$this->fk_user_modif = trim($this->fk_user_modif);
$this->fk_user_modif = (int) $this->fk_user_modif;
}
@ -500,17 +500,17 @@ class PaymentExpenseReport extends CommonObject
{
$this->id = 0;
$this->fk_expensereport = '';
$this->fk_expensereport = 0;
$this->datec = '';
$this->tms = '';
$this->datep = '';
$this->amount = '';
$this->fk_typepayment = '';
$this->fk_typepayment = 0;
$this->num_payment = '';
$this->note = '';
$this->fk_bank = '';
$this->fk_user_creat = '';
$this->fk_user_modif = '';
$this->fk_bank = 0;
$this->fk_user_creat = 0;
$this->fk_user_modif = 0;
}