From c6ded35d4b5415d99c7f82666a35df86f28082bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sat, 28 Dec 2013 23:13:32 +0100 Subject: [PATCH 1/3] Fixed quality control checks for PR #1357 --- htdocs/core/lib/payments.lib.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index dc40127818e..7aeffdba013 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -18,7 +18,14 @@ * or see http://www.gnu.org/ */ -function payment_prepare_head($object) { +/** + * Returns an array with the tabs for the "Payment" section + * It loads tabs from modules looking for the entity payment + * + * @param Paiement $object + * @return array + */ +function payment_prepare_head(Paiement $object) { global $langs, $conf; @@ -46,6 +53,13 @@ function payment_prepare_head($object) { return $head; } +/** + * Returns an array with the tabs for the "Supplier payment" section + * It loads tabs from modules looking for the entity payment_supplier + * + * @param Paiement $object + * @return array + */ function payment_supplier_prepare_head($object) { global $langs, $conf; From 9b90e93fe5cc9ea98811e99d8883b6f95415be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sat, 28 Dec 2013 23:24:24 +0100 Subject: [PATCH 2/3] Forgot typehinting for function payment_supplier_prepare_head --- htdocs/core/lib/payments.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index 7aeffdba013..2a26cea6efd 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -60,7 +60,7 @@ function payment_prepare_head(Paiement $object) { * @param Paiement $object * @return array */ -function payment_supplier_prepare_head($object) { +function payment_supplier_prepare_head(Paiement $object) { global $langs, $conf; From 44ab26698e0442d980e4b14c0d91944363c433d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Thu, 2 Jan 2014 16:41:23 +0100 Subject: [PATCH 3/3] Fixed (again) quality code control checks --- htdocs/core/lib/payments.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index 2a26cea6efd..f4d3b80ee8c 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -22,8 +22,8 @@ * Returns an array with the tabs for the "Payment" section * It loads tabs from modules looking for the entity payment * - * @param Paiement $object - * @return array + * @param Paiement $object Current payment object + * @return array Tabs for the payment section */ function payment_prepare_head(Paiement $object) { @@ -57,8 +57,8 @@ function payment_prepare_head(Paiement $object) { * Returns an array with the tabs for the "Supplier payment" section * It loads tabs from modules looking for the entity payment_supplier * - * @param Paiement $object - * @return array + * @param Paiement $object Current payment object + * @return array Tabs for the payment section */ function payment_supplier_prepare_head(Paiement $object) {