From 47b9af09a500d573697c3ed2bf68599637dbc6d3 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Tue, 27 Aug 2019 16:37:14 +0200 Subject: [PATCH] Fix stickler --- .../societe/mod_codecompta_digitaria.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/core/modules/societe/mod_codecompta_digitaria.php b/htdocs/core/modules/societe/mod_codecompta_digitaria.php index 6492f579465..8044610a914 100644 --- a/htdocs/core/modules/societe/mod_codecompta_digitaria.php +++ b/htdocs/core/modules/societe/mod_codecompta_digitaria.php @@ -36,18 +36,18 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode * @deprecated * @see name */ - var $nom='Digitaria'; + public $nom='Digitaria'; /** * @var string model name */ - var $name='Digitaria'; + public $name='Digitaria'; /** * Dolibarr version of the loaded document * @var string */ - var $version='dolibarr'; // 'development', 'experimental', 'dolibarr' + public $version='dolibarr'; // 'development', 'experimental', 'dolibarr' public $prefixcustomeraccountancycode; @@ -56,7 +56,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode /** * Constructor */ - function __construct() + public function __construct() { global $conf, $langs; if (! isset($conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER) || trim($conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER) == '') $conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER='411'; @@ -76,7 +76,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode * @param Translate $langs Object langs * @return string Description of module */ - function info($langs) + public function info($langs) { global $conf, $form; @@ -119,7 +119,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode * @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Example */ - function getExample($langs, $objsoc=0, $type=-1) + public function getExample($langs, $objsoc=0, $type=-1) { global $mysoc; @@ -143,7 +143,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode * @param int $type 'customer' or 'supplier' * @return int >=0 if OK, <0 if KO */ - function get_code($db, $societe, $type='') + public function get_code($db, $societe, $type='') { // phpcs:enable $i = 0; @@ -224,12 +224,12 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode /** * Check accountancy account code for a third party into this->code * - * @param DoliDB $db Database handler - * @param Societe $societe Third party object + * @param DoliDB $db Database handler + * @param string $code Code of third party * @param int $type 'customer' or 'supplier' * @return int >=0 if OK, <0 if KO */ - function checkIfAccountancyCodeIsAlreadyUsed($db, $code, $type='') + public function checkIfAccountancyCodeIsAlreadyUsed($db, $code, $type='') { if ($type == 'supplier') {