--- /tmp/dsg/dolibarr/htdocs/core/modules/propale/github_mod_propale_marbre.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/propale/client_mod_propale_marbre.php @@ -47,7 +47,7 @@ /** * @var string Nom du modele * @deprecated - * @see $name + * @see name */ public $nom = 'Marbre'; @@ -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/propale/github_mod_propale_saphir.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/propale/client_mod_propale_saphir.php @@ -34,20 +34,20 @@ class mod_propale_saphir extends ModeleNumRefPropales { /** - * 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 * @deprecated - * @see $name + * @see name */ public $nom = 'Saphir'; @@ -57,14 +57,14 @@ public $name = 'Saphir'; - /** - * Return description of module - * - * @return string Texte descripif - */ + /** + * Return description of module + * + * @return string Texte descripif + */ public function info() - { - global $conf, $langs, $db; + { + global $conf, $langs, $db; $langs->load("bills"); @@ -95,22 +95,22 @@ $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; - $old_code_type = $mysoc->typent_code; - $mysoc->code_client = 'CCCCCCCCCC'; - $mysoc->typent_code = 'TTTTTTTTTT'; - $numExample = $this->getNextValue($mysoc, ''); + $old_code_client = $mysoc->code_client; + $old_code_type = $mysoc->typent_code; + $mysoc->code_client = 'CCCCCCCCCC'; + $mysoc->typent_code = 'TTTTTTTTTT'; + $numExample = $this->getNextValue($mysoc, ''); $mysoc->code_client = $old_code_client; $mysoc->typent_code = $old_code_type; @@ -119,7 +119,7 @@ $numExample = 'NotConfigured'; } return $numExample; - } + } /** * Return next value --- /tmp/dsg/dolibarr/htdocs/core/modules/propale/github_modules_propale.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/propale/client_modules_propale.php @@ -42,17 +42,17 @@ public $error = ''; - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps + // 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 + * @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 = 'propal';