From b3bcdeafe5d58bac390041b09bf8dcbae9f7b55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20France?= Date: Thu, 18 Jan 2024 18:55:53 +0100 Subject: [PATCH] rename method --- htdocs/comm/propal/class/propal.class.php | 4 +--- htdocs/commande/class/commande.class.php | 4 +--- htdocs/compta/bank/class/account.class.php | 4 +--- htdocs/compta/facture/class/facture.class.php | 4 +--- htdocs/compta/paiement/cheque/class/remisecheque.class.php | 4 +--- htdocs/contact/class/contact.class.php | 4 +--- htdocs/contrat/class/contrat.class.php | 4 +--- htdocs/don/class/don.class.php | 4 +--- htdocs/expensereport/class/expensereport.class.php | 4 +--- htdocs/fichinter/class/fichinter.class.php | 4 +--- htdocs/fourn/class/fournisseur.class.php | 4 +--- htdocs/product/class/product.class.php | 4 +--- htdocs/projet/class/project.class.php | 4 +--- htdocs/projet/class/task.class.php | 4 +--- htdocs/societe/class/client.class.php | 4 +--- htdocs/supplier_proposal/class/supplier_proposal.class.php | 4 +--- htdocs/ticket/class/ticket.class.php | 6 ++---- htdocs/user/class/user.class.php | 4 +--- 18 files changed, 19 insertions(+), 55 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 9b9c7d0dc15..30cc87f0df4 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3685,15 +3685,13 @@ class Propal extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for the state board * * @return int Return integer <0 if ko, >0 if ok */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user; $this->nb = array(); diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 5a0081baf88..e0b71e06fa5 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -4062,15 +4062,13 @@ class Commande extends CommonOrder } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for the state board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user; $this->nb = array(); diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 7609c4018df..a9cf49be3dc 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -1346,16 +1346,14 @@ class Account extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for the state board * * @param int $filteraccountid To get info for a particular account id * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board($filteraccountid = 0) + public function loadStateBoard($filteraccountid = 0) { - // phpcs:enable global $user; if ($user->socid) { diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index e9b6e54ee67..7b6ea28961a 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -5152,15 +5152,13 @@ class Facture extends CommonInvoice } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators for dashboard (this->nbtodo and this->nbtodolate) * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf, $user; $this->nb = array(); diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php index 5595b2b935a..a48c399bb8d 100644 --- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php +++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php @@ -524,16 +524,14 @@ class RemiseCheque extends CommonObject } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators this->nb for the state board * * @param string $type Type of payment mode deposit ('CHQ', 'TRA', ...) * @return int Return integer <0 if ko, >0 if ok */ - public function load_state_board($type = 'CHQ') + public function loadStateBoard($type = 'CHQ') { - // phpcs:enable global $user; if ($user->socid) { diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 92e3d3b2369..763b5900ea4 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -397,15 +397,13 @@ class Contact extends CommonObject }*/ } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators into this->nb for board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user, $hookmanager; $this->nb = array(); diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 2e7b222698a..bbefea140b9 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -2374,15 +2374,13 @@ class Contrat extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for state board * * @return int Return integer <0 si ko, >0 si ok */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf, $user; $this->nb = array(); diff --git a/htdocs/don/class/don.class.php b/htdocs/don/class/don.class.php index bc0f189cdd7..92b371ef5e9 100644 --- a/htdocs/don/class/don.class.php +++ b/htdocs/don/class/don.class.php @@ -877,15 +877,13 @@ class Don extends CommonObject return $result; } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for the state board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable $this->nb = array(); $sql = "SELECT count(d.rowid) as nb"; diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 6214cdd3a61..a46b61ad3b1 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -2482,15 +2482,13 @@ class ExpenseReport extends CommonObject return $ret; } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load the indicators this->nb for the state board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf, $user; $this->nb = array(); diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 018c2e3f076..b5e2fe02407 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -207,15 +207,13 @@ class Fichinter extends CommonObject $this->db = $db; } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators into this->nb for board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user; $this->nb = array(); diff --git a/htdocs/fourn/class/fournisseur.class.php b/htdocs/fourn/class/fournisseur.class.php index 2fb646d69f8..cf3263ec3df 100644 --- a/htdocs/fourn/class/fournisseur.class.php +++ b/htdocs/fourn/class/fournisseur.class.php @@ -94,15 +94,13 @@ class Fournisseur extends Societe } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load statistics indicators * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf, $user, $hookmanager; $this->nb = array(); diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 5a7ae18ee1d..cfc2ed799b4 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -6123,15 +6123,13 @@ class Product extends CommonObject $this->imgHeight = $infoImg[1]; // Hauteur de l'image } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators this->nb for the dashboard * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $hookmanager; $this->nb = array(); diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index f79bb10a1b9..a7fed3246dc 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -2293,15 +2293,13 @@ class Project extends CommonObject } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators this->nb for the state board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user; $this->nb = array(); diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index c3cbe241739..64ce3e64cfc 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -2337,15 +2337,13 @@ class Task extends CommonObjectLine } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators this->nb for state board * * @return int Return integer <0 if ko, >0 if ok */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user; $mine = 0; diff --git a/htdocs/societe/class/client.class.php b/htdocs/societe/class/client.class.php index e3583c439e0..67b3bef8ee8 100644 --- a/htdocs/societe/class/client.class.php +++ b/htdocs/societe/class/client.class.php @@ -48,15 +48,13 @@ class Client extends Societe $this->fournisseur = 0; } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicators into this->nb for board * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $user, $hookmanager; $this->nb = array("prospects" => 0, "customers" => 0); diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index 19ee754a282..8d11b49434d 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -2363,15 +2363,13 @@ class SupplierProposal extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicator this->nb of global stats widget * * @return int Return integer <0 if ko, >0 if ok */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf, $user; $this->nb = array(); diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 6e4b25ceabc..c6443027d0f 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -3054,16 +3054,14 @@ class Ticket extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load indicator this->nb of global stats widget * * @return int Return integer <0 if ko, >0 if ok */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable - global $conf, $user; + global $user; $this->nb = array(); $clause = "WHERE"; diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 2b695f4facf..34e9735ca8a 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -3875,15 +3875,13 @@ class User extends CommonObject } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load metrics this->nb for dashboard * * @return int Return integer <0 if KO, >0 if OK */ - public function load_state_board() + public function loadStateBoard() { - // phpcs:enable global $conf; $this->nb = array();