Phpcs Generic.CodeAnalysis.UnusedFunctionParameter

This commit is contained in:
Alexandre SPANGARO 2019-01-20 20:44:18 +01:00
parent 45a24df679
commit 5efac262aa

View File

@ -250,7 +250,7 @@ class PaymentExpenseReport extends CommonObject
}
}
// phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter
/**
* Update database
*
@ -260,6 +260,7 @@ class PaymentExpenseReport extends CommonObject
*/
function update($user=null, $notrigger=0)
{
// phpcs:enable
global $conf, $langs;
$error=0;
@ -336,7 +337,7 @@ class PaymentExpenseReport extends CommonObject
}
}
// phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter
/**
* Delete object in database
*
@ -346,6 +347,7 @@ class PaymentExpenseReport extends CommonObject
*/
function delete($user, $notrigger=0)
{
// phpcs:enable
global $conf, $langs;
$error=0;
@ -421,8 +423,6 @@ class PaymentExpenseReport extends CommonObject
$object=new PaymentExpenseReport($this->db);
$object->context['createfromclone'] = 'createfromclone';
$this->db->begin();
// Load source object
@ -434,6 +434,7 @@ class PaymentExpenseReport extends CommonObject
// ...
// Create clone
$object->context['createfromclone'] = 'createfromclone';
$result=$object->create($user);
// Other options
@ -446,11 +447,9 @@ class PaymentExpenseReport extends CommonObject
if (! $error)
{
}
unset($this->context['createfromclone']);
unset($object->context['createfromclone']);
// End
if (! $error)