--- /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/github_mod_supplier_proposal_marbre.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/client_mod_supplier_proposal_marbre.php @@ -108,7 +108,9 @@ if (!$pryymm || preg_match('/'.$this->prefix.'[0-9][0-9][0-9][0-9]/i', $pryymm)) { return true; - } else { + } + else + { $langs->load("errors"); $this->error = $langs->trans('ErrorNumRefModel', $max); return false; @@ -139,7 +141,9 @@ $obj = $db->fetch_object($resql); if ($obj) $max = intval($obj->max); else $max = 0; - } else { + } + else + { dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG); return -1; } --- /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/github_mod_supplier_proposal_saphir.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/client_mod_supplier_proposal_saphir.php @@ -34,15 +34,15 @@ class mod_supplier_proposal_saphir extends ModeleNumRefSupplierProposal { /** - * Dolibarr version of the loaded document - * @var string - */ + * Dolibarr version of the loaded document + * @var string + */ public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' /** - * @var string Error code (or message) - */ - public $error = ''; + * @var string Error code (or message) + */ + public $error = ''; /** * @var string Nom du modele @@ -57,14 +57,14 @@ public $name = 'Saphir'; - /** - * Return description of module - * - * @return string Texte descripif - */ - public function info() - { - global $conf, $langs, $db; + /** + * Return description of module + * + * @return string Texte descripif + */ + public function info() + { + global $conf, $langs, $db; $langs->load("bills"); @@ -95,20 +95,20 @@ $texte .= ''; return $texte; - } + } - /** - * Return an example of numbering - * - * @return string Example - */ - public function getExample() - { - global $conf, $langs, $mysoc; + /** + * Return an example of numbering + * + * @return string Example + */ + public function getExample() + { + global $conf, $langs, $mysoc; - $old_code_client = $mysoc->code_client; - $mysoc->code_client = 'CCCCCCCCCC'; - $numExample = $this->getNextValue($mysoc, ''); + $old_code_client = $mysoc->code_client; + $mysoc->code_client = 'CCCCCCCCCC'; + $numExample = $this->getNextValue($mysoc, ''); $mysoc->code_client = $old_code_client; if (!$numExample) @@ -116,7 +116,7 @@ $numExample = 'NotConfigured'; } return $numExample; - } + } /** * Return next value --- /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/github_modules_supplier_proposal.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/supplier_proposal/client_modules_supplier_proposal.php @@ -42,17 +42,17 @@ public $error = ''; - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps - /** - * Return list of active generation modules - * - * @param DoliDB $db Database handler - * @param integer $maxfilenamelength Max length of value to show - * @return array List of templates + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps + /** + * Return list of active generation modules + * + * @param DoliDB $db Database handler + * @param integer $maxfilenamelength Max length of value to show + * @return array List of templates */ public static function liste_modeles($db, $maxfilenamelength = 0) { - // phpcs:enable + // phpcs:enable global $conf; $type = 'supplier_proposal';