diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index 52b5f1c411f..376dd9df487 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -185,6 +185,7 @@ class AccountancyExport * Function who chose which export to use with the default config * * @param unknown $TData data + * @return void */ public function export(&$TData) { global $conf, $langs; @@ -602,6 +603,7 @@ class AccountancyExport * * @param unknown $str data * @param integer $size data + * @return string */ public static function trunc($str, $size) { return dol_trunc($str, $size, 'right', 'UTF-8', 1); diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 79b72a5a54c..f51fa829912 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -943,6 +943,7 @@ class Account extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs + * @return void */ public function setCategories($categories) { // Handle single category @@ -2282,4 +2283,3 @@ class AccountLine extends CommonObject } } - diff --git a/htdocs/core/class/coreobject.class.php b/htdocs/core/class/coreobject.class.php index 1456fb991c2..fbd7b7b1448 100644 --- a/htdocs/core/class/coreobject.class.php +++ b/htdocs/core/class/coreobject.class.php @@ -1,6 +1,6 @@ * * This program is free software; you can redistribute it and/or modify @@ -22,7 +22,7 @@ * \ingroup core * \brief File of class to manage all object. Might be replace or merge into commonobject */ - + require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php'; class CoreObject extends CommonObject @@ -54,7 +54,7 @@ class CoreObject extends CommonObject $this->id = 0; $this->datec = 0; $this->tms = 0; - + if (!empty($this->fields)) { foreach ($this->fields as $field=>$info) @@ -68,14 +68,14 @@ class CoreObject extends CommonObject $this->to_delete=false; $this->is_clone=false; - + return true; } else { return false; } - + } /** @@ -110,7 +110,7 @@ class CoreObject extends CommonObject if($res>0) { if ($loadChild) $this->fetchChild(); } - + return $res; } @@ -133,14 +133,14 @@ class CoreObject extends CommonObject if($object->{$key} === $id) return $k; } } - + $k = count($this->{$tabName}); - + $className = ucfirst($tabName); $this->{$tabName}[$k] = new $className($this->db); if($id>0 && $key==='id' && $try_to_load) { - $this->{$tabName}[$k]->fetch($id); + $this->{$tabName}[$k]->fetch($id); } return $k; @@ -171,6 +171,8 @@ class CoreObject extends CommonObject /** * Function to fetch children objects + * + * @return void */ public function fetchChild() { @@ -207,6 +209,7 @@ class CoreObject extends CommonObject * Function to update children data * * @param User $user user object + * @return void */ public function saveChild(User &$user) { @@ -220,7 +223,7 @@ class CoreObject extends CommonObject foreach($this->{$className} as $i => &$object) { $object->{$this->fk_element} = $this->id; - + $object->update($user); if($this->unsetChildDeleted && isset($object->to_delete) && $object->to_delete==true) unset($this->{$className}[$i]); } diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php index f49325a5bc5..fdfe342f35d 100644 --- a/htdocs/ticket/class/actions_ticket.class.php +++ b/htdocs/ticket/class/actions_ticket.class.php @@ -579,6 +579,7 @@ class ActionsTicket * * @param User $user User for action * @param string $action Action string + * @return int */ private function newMessage($user, &$action) { @@ -792,6 +793,7 @@ class ActionsTicket * * @param User $user User for action * @param string $action Action string + * @return void */ private function newMessagePublic($user, &$action) { @@ -962,6 +964,7 @@ class ActionsTicket * Get ticket info * * @param int $id Object id + * @return void */ public function getInfo($id) { @@ -976,6 +979,7 @@ class ActionsTicket * Get action title * * @param string $action Type of action + * @return string */ public function getTitle($action = '') { @@ -998,6 +1002,7 @@ class ActionsTicket * View html list of logs * * @param boolean $show_user Show user who make action + * @return void */ public function viewTicketLogs($show_user = true) { @@ -1058,6 +1063,7 @@ class ActionsTicket * * @param boolean $show_user Show user who make action * @param Ticket $object Object + * @return void */ public function viewTimelineTicketLogs($show_user = true, $object = true) { @@ -1165,6 +1171,7 @@ class ActionsTicket * * @param boolean $show_private Show private messages * @param boolean $show_user Show user who make action + * @return void */ public function viewTicketMessages($show_private, $show_user = true) { @@ -1237,6 +1244,7 @@ class ActionsTicket * @param boolean $show_private Show private messages * @param boolean $show_user Show user who make action * @param Ticket $object Object ticket + * @return void */ public function viewTicketTimelineMessages($show_private, $show_user, Ticket $object) { @@ -1308,6 +1316,7 @@ class ActionsTicket * @param string $message Email message * @param int $send_internal_cc Receive a copy on internal email ($conf->global->TICKET_NOTIFICATION_EMAIL_FROM) * @param array $array_receiver Array of receiver. exemple array('name' => 'John Doe', 'email' => 'john@doe.com', etc...) + * @return void */ public function sendTicketMessageByEmail($subject, $message, $send_internal_cc = 0, $array_receiver = array()) {