diff --git a/dev/codesniffer/README b/dev/codesniffer/README index b06a2b1e5f69f29d7e32bab33005dfc946890ab0..8a68d8a114042606e1690e2c3fae10f5c3ffc065 100755 --- a/dev/codesniffer/README +++ b/dev/codesniffer/README @@ -1,9 +1,12 @@ README (English) -------------------------------- -This directory contains ruleset files to use to -develop Dolibarr EPR & CRM with Eclipse. +This directory contains ruleset files to use to develop Dolibarr EPR & CRM. -Note: You must setup the PTI plugin of Eclipse into PHPCodeSniffer menu with: +To install/upgrade phpcs: +> sudo pear upgrade PHP_CodeSniffer + +Note with Eclipse: You must setup the PTI plugin of Eclipse into PHPCodeSniffer menu with: * tab value to 4 -* path of code sniffer standard to dev/codesniffer \ No newline at end of file +* path of code sniffer standard to dev/codesniffer + diff --git a/htdocs/core/boxes/box_task.php b/htdocs/core/boxes/box_task.php index c15bc9831ce1deaec40c7f76e1234af25cb767be..14ca4448a7c5f4fff1621724996506a947740817 100644 --- a/htdocs/core/boxes/box_task.php +++ b/htdocs/core/boxes/box_task.php @@ -40,10 +40,8 @@ class box_task extends ModeleBoxes var $info_box_contents = array(); /** - * \brief Constructeur de la classe - * - * @return void - */ + * Constructor + */ function box_task() { global $langs; @@ -126,7 +124,7 @@ class box_task extends ModeleBoxes $this->info_box_contents[$i][3] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totalplannedtot,'all',25200,5)); $this->info_box_contents[$i][4] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totaldurationtot,'all',25200,5)); $this->info_box_contents[$i][5] = array('td' => '', 'text' => ""); - + } /** diff --git a/htdocs/core/lib/usergroups.lib.php b/htdocs/core/lib/usergroups.lib.php index 0abec31b6fd8e3d1ae0af440d7b7d1a40336511a..41b7996cbfdf2092f7426150a95b65eec049c482 100644 --- a/htdocs/core/lib/usergroups.lib.php +++ b/htdocs/core/lib/usergroups.lib.php @@ -126,7 +126,12 @@ function user_prepare_head($object) return $head; } - +/** + * Prepare array with list of tabs + * + * @param Group $object Object group + * @return array Array of tabs + */ function group_prepare_head($object) { global $langs, $conf, $user;