mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan (#31124)
* fix phpstan * fix phpstan * fix phpstan * fix phpstan --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
c32ebad2c5
commit
64e7ccf5ef
|
|
@ -417,7 +417,8 @@ if ($resql) {
|
|||
// If the page show all record (no pagination) and total does not match total of file, we show a warning. Should not happen.
|
||||
if (($nbtotalofrecords <= $num) && $totalamount_requested != (float) $object->amount) {
|
||||
$langs->load("errors");
|
||||
print img_warning("WarningAmountOfFileDiffersFromSumOfLines", (float) $object->amount, $totalamount_requested);
|
||||
// Warning, amount of file (%s) differs from the sum of lines (%s)
|
||||
print img_warning($langs->trans("WarningAmountOfFileDiffersFromSumOfLines", price($object->amount), price($totalamount_requested)));
|
||||
}
|
||||
print price($totalamount_requested);
|
||||
print "</td>\n";
|
||||
|
|
|
|||
|
|
@ -2175,7 +2175,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
|
||||
$hautcadre -= 10; // Height for the shipping address does not need to be as high as main box
|
||||
|
||||
// Show shipping frame
|
||||
$pdf->SetXY($posx + 2, $posy - 5);
|
||||
|
|
|
|||
|
|
@ -2455,7 +2455,7 @@ class pdf_sponge extends ModelePDFFactures
|
|||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
|
||||
$hautcadre -= 10; // Height for the shipping address does not need to be as high as main box
|
||||
|
||||
// Show shipping frame
|
||||
$pdf->SetXY($posx + 2, $posy - 5);
|
||||
|
|
|
|||
|
|
@ -148,7 +148,6 @@ class Salary extends CommonObject
|
|||
'datesp' => array('type' => 'date', 'label' => 'DateStart', 'enabled' => 1, 'visible' => 1, 'position' => 130, 'comment' => 'Date'),
|
||||
'dateep' => array('type' => 'date', 'label' => 'DateEnd', 'enabled' => 1, 'visible' => 1, 'position' => 140, 'comment' => 'Date'),
|
||||
'entity' => array('type' => 'integer', 'label' => 'Entity', 'default' => '1', 'enabled' => 1, 'visible' => 0, 'position' => 150, 'index' => 1),
|
||||
'tms' => array('type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'visible' => 0, 'notnull' => 1, 'position' => 20),
|
||||
'note' => array('type' => 'text', 'label' => 'Note', 'enabled' => 1, 'position' => 160, 'visible' => 0,),
|
||||
'fk_bank' => array('type' => 'integer', 'label' => 'BankId', 'enabled' => 1, 'visible' => 0, 'position' => 170),
|
||||
'paye' => array('type' => 'smallint(6)', 'label' => 'Status', 'enabled' => 1, 'visible' => 1, 'notnull' => 1, 'position' => 180),
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ parameters:
|
|||
- '#::HTML2OpenIDServer\(\) expects string, array given.#'
|
||||
- '#create_line\(\) expects string, float given.#'
|
||||
- '# dol_stringtotime expects string, DateTime given.#'
|
||||
- '# (show_ldap_content|projectLinesa) expects string, true given.#'
|
||||
- '# show_ldap_content expects string, true given.#'
|
||||
- '#expects string, bool\|mysqli_result\|resource given.#'
|
||||
- '#( |::)((multi)?selectarray)\(\) expects array#'
|
||||
- '# (reWriteAllMenus|check_authentication) expects array#'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user