From e476678a54aeae756c312a6576b62a75f80f8212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 24 Oct 2020 09:32:39 +0200 Subject: [PATCH] doxygen --- htdocs/core/lib/functions2.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 16e31608941..bb89d1777d8 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1567,7 +1567,7 @@ function version_webserver() * @param DoliDB $db Database handler * @param string $type Type of models (company, invoice, ...) * @param int $maxfilenamelength Max length of value to show - * @return mixed 0 if no module is activated, or array(key=>label). For modules that need directory scan, key is completed with ":filename". + * @return array|int 0 if no module is activated, or array(key=>label). For modules that need directory scan, key is completed with ":filename". */ function getListOfModels($db, $type, $maxfilenamelength = 0) { @@ -1640,8 +1640,8 @@ function getListOfModels($db, $type, $maxfilenamelength = 0) { $liste[$obj->id.':'.$key] = ($obj->label ? $obj->label : $obj->doc_template_name).' '.$val['name']; } - } else // Common usage - { + } else { + // Common usage $liste[$obj->id] = $obj->label ? $obj->label : $obj->doc_template_name; } }