diff --git a/htdocs/admin/tools/ui/class/documentation.class.php b/htdocs/admin/tools/ui/class/documentation.class.php index f0029aba994..7f53440eb74 100644 --- a/htdocs/admin/tools/ui/class/documentation.class.php +++ b/htdocs/admin/tools/ui/class/documentation.class.php @@ -31,7 +31,7 @@ class Documentation /** * Views * - * @var array|array + * @var array{}|array */ public $view = array(); @@ -76,9 +76,9 @@ class Documentation } /** - * Set Documentation Menu + * Set Documentation Menu * - * @return mixed false if error, void if no errors + * @return boolean False if error, true if OK */ private function setMenu() { @@ -302,6 +302,8 @@ class Documentation if ($reshook < 0) { return false; } + + return true; } /** @@ -376,10 +378,10 @@ class Documentation } /** - * Recursive function to set Menu + * Recursive function to set Menu * - * @param array, submenu?: array}> $menu Menu entry or submenu - * @param int $level level of menu + * @param array, submenu?: array}> $menu Menu entry or submenu + * @param int $level Level of menu * @return void */ private function displayMenu($menu, $level = 0) @@ -471,10 +473,10 @@ class Documentation /** - * Recursive function for Automatic Summary + * Recursive function for Automatic Summary * - * @param array{summary?: array, submenu?: array} $menu $this->menu or submenus - * @param int $level level of menu + * @param array{summary?: array, submenu?: array} $menu Array $this->menu or submenus + * @param int $level Level of menu * @param int $showsubmenu Show Sub menus: 0 = No, 1 = Yes * @param int $showsubmenu_summary Show summary of sub menus: 0 = No, 1 = Yes * @return void diff --git a/htdocs/asset/tpl/accountancy_codes_edit.tpl.php b/htdocs/asset/tpl/accountancy_codes_edit.tpl.php index 258b913006e..08a6499eb75 100644 --- a/htdocs/asset/tpl/accountancy_codes_edit.tpl.php +++ b/htdocs/asset/tpl/accountancy_codes_edit.tpl.php @@ -16,14 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * Show extrafields. It also shows fields from hook formAssetAccountancyCode. Need to have the following variables defined: - * $object (asset, assetmodel, ...) - * $assetaccountancycodes - * $action - * $conf - * $langs - * - * $parameters + * Show extrafields. It also shows fields from hook formAssetAccountancyCode. */ /** diff --git a/htdocs/asset/tpl/accountancy_codes_view.tpl.php b/htdocs/asset/tpl/accountancy_codes_view.tpl.php index 354cc9f39af..53075953c2f 100644 --- a/htdocs/asset/tpl/accountancy_codes_view.tpl.php +++ b/htdocs/asset/tpl/accountancy_codes_view.tpl.php @@ -16,14 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * Show extrafields. It also shows fields from hook formAssetAccountancyCode. Need to have the following variables defined: - * $object (asset, assetmodel, ...) - * $assetaccountancycodes - * $action - * $conf - * $langs - * - * $parameters + * Show extrafields. It also shows fields from hook formAssetAccountancyCode. */ /** @@ -32,6 +25,12 @@ * @var Form $form * @var HookManager $hookmanager * @var Translate $langs + * + * @var ?Object $object (asset, assetmodel, ...) + * @var AssetAccountancyCodes $assetaccountancycodes + * @var AssetDepreciationOptions $assetdepreciationoptions + * @var string $action + * @var array $parameters */ // Protection to avoid direct call of template