From 512ceae70a138e5210e70085208d5e58b549f69a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Feb 2019 11:27:30 +0100 Subject: [PATCH 1/3] Fix phpcs --- htdocs/fourn/facture/paiement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 82cb0314de9..461a1532290 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -621,7 +621,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print ''.price($objp->am); if ($creditnotes) print '+'.price($creditnotes); - if ($deposits) print '+'.price($deposits); + if ($deposits) print '+'.price($deposits); print ''; print ''.price($remaintopay).''; From ec686a8f79e1a7b93340f412dd70d287beee6795 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Feb 2019 11:30:20 +0100 Subject: [PATCH 2/3] Fix phpcs --- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 37812647caa..6165e948fd0 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -924,7 +924,9 @@ class pdf_crabe extends ModelePDFFactures } /** - * @param PDF $pdf Object PDF + * Function _tableau_versements_header + * + * @param TCPDF $pdf Object PDF * @param Facture $object Object invoice * @param Translate $outputlangs Object langs for output * @param int $default_font_size Font size @@ -932,6 +934,7 @@ class pdf_crabe extends ModelePDFFactures * @param int $tab3_top pos y * @param int $tab3_width width * @param int $tab3_height height + * @return void */ function _tableau_versements_header($pdf, $object, $outputlangs, $default_font_size, $tab3_posx, $tab3_top, $tab3_width, $tab3_height) { From 1611c613f56c541ea23242bf88466e6630442f88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Feb 2019 12:19:51 +0100 Subject: [PATCH 3/3] Fix phpcs --- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 6165e948fd0..c22b1d23ef7 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -923,6 +923,7 @@ class pdf_crabe extends ModelePDFFactures } } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps /** * Function _tableau_versements_header * @@ -938,7 +939,8 @@ class pdf_crabe extends ModelePDFFactures */ function _tableau_versements_header($pdf, $object, $outputlangs, $default_font_size, $tab3_posx, $tab3_top, $tab3_width, $tab3_height) { - $title=$outputlangs->transnoentities("PaymentsAlreadyDone"); + // phpcs:enable + $title=$outputlangs->transnoentities("PaymentsAlreadyDone"); if ($object->type == 2) $title=$outputlangs->transnoentities("PaymentsBackAlreadyDone"); $pdf->SetFont('','', $default_font_size - 3);