@@ -80,7 +80,7 @@  | 
                                                    ||
| 80 | 80 | |
| 81 | 81 | /**  | 
                                                        
| 82 | 82 | * Validates the received active connection data with the database  | 
                                                        
| 83 | - * @return bool Return the loginFailed variable value to local.inc.php  | 
                                                        |
| 83 | + * @return null|false Return the loginFailed variable value to local.inc.php  | 
                                                        |
| 84 | 84 | */  | 
                                                        
| 85 | 85 | public function check_user()  | 
                                                        
| 86 | 86 |      { | 
                                                        
@@ -173,7 +173,7 @@  | 
                                                    ||
| 173 | 173 | |
| 174 | 174 | /**  | 
                                                        
| 175 | 175 | * @param array $file  | 
                                                        
| 176 | - * @return bool|string  | 
                                                        |
| 176 | + * @return string|false  | 
                                                        |
| 177 | 177 | */  | 
                                                        
| 178 | 178 | public static function import_uploaded_file($file)  | 
                                                        
| 179 | 179 |      { | 
                                                        
@@ -34,7 +34,7 @@  | 
                                                    ||
| 34 | 34 | * course  | 
                                                        
| 35 | 35 | * @param string $type 'full_backup' or 'select_items'  | 
                                                        
| 36 | 36 | *  | 
                                                        
| 37 | - * @return bool  | 
                                                        |
| 37 | + * @return false|null  | 
                                                        |
| 38 | 38 | *  | 
                                                        
| 39 | 39 | * @assert (null) === false  | 
                                                        
| 40 | 40 | */  | 
                                                        
@@ -47,6 +47,9 @@  | 
                                                    ||
| 47 | 47 | |
| 48 | 48 | /* FUNCTIONS */  | 
                                                        
| 49 | 49 | |
| 50 | +/**  | 
                                                        |
| 51 | + * @param string $name  | 
                                                        |
| 52 | + */  | 
                                                        |
| 50 | 53 | function make_select_session_list($name, $sessions, $attr = array())  | 
                                                        
| 51 | 54 |  { | 
                                                        
| 52 | 55 | $attributes = '';  | 
                                                        
@@ -327,7 +327,7 @@  | 
                                                    ||
| 327 | 327 | * @param array $arr1 first array  | 
                                                        
| 328 | 328 | * @param array $arr2 second array  | 
                                                        
| 329 | 329 | *  | 
                                                        
| 330 | - * @return array difference between the two arrays  | 
                                                        |
| 330 | + * @return string difference between the two arrays  | 
                                                        |
| 331 | 331 | */  | 
                                                        
| 332 | 332 | function diff($arr1, $arr2)  | 
                                                        
| 333 | 333 |  { | 
                                                        
@@ -95,7 +95,7 @@  | 
                                                    ||
| 95 | 95 | |
| 96 | 96 | /**  | 
                                                        
| 97 | 97 | * Get the progress of this learnpath. Only the last attempt are taken into account.  | 
                                                        
| 98 | - * @param $stud_id student id (default: all students who have results - then the average is returned)  | 
                                                        |
| 98 | + * @param integer $stud_id student id (default: all students who have results - then the average is returned)  | 
                                                        |
| 99 | 99 | * @return array (score, max) if student is given  | 
                                                        
| 100 | 100 | * array (sum of scores, number of scores) otherwise  | 
                                                        
| 101 | 101 | * or null if no scores available  | 
                                                        
@@ -32,6 +32,8 @@ discard block  | 
                                                    ||
| 32 | 32 | * @param array $evals  | 
                                                        
| 33 | 33 | * @param array $links  | 
                                                        
| 34 | 34 | * @param null $addparams  | 
                                                        
| 35 | + * @param boolean $showTeacherView  | 
                                                        |
| 36 | + * @param integer $userId  | 
                                                        |
| 35 | 37 | */  | 
                                                        
| 36 | 38 | public function __construct(  | 
                                                        
| 37 | 39 | $currentcat,  | 
                                                        
@@ -895,7 +897,7 @@ discard block  | 
                                                    ||
| 895 | 897 | |
| 896 | 898 | /**  | 
                                                        
| 897 | 899 | * @param $item  | 
                                                        
| 898 | - * @return mixed  | 
                                                        |
| 900 | + * @return string|null  | 
                                                        |
| 899 | 901 | */  | 
                                                        
| 900 | 902 | private function build_course_code($item)  | 
                                                        
| 901 | 903 |      { | 
                                                        
@@ -1,7 +1,6 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /* For licensing terms, see license.txt */  | 
                                                        
| 3 | 3 | |
| 4 | -use ChamiloSession as Session;  | 
                                                        |
| 5 | 4 | use CpChart\Classes\pCache as pCache;  | 
                                                        
| 6 | 5 | use CpChart\Classes\pData as pData;  | 
                                                        
| 7 | 6 | use CpChart\Classes\pImage as pImage;  | 
                                                        
@@ -72,6 +72,7 @@ discard block  | 
                                                    ||
| 72 | 72 | |
| 73 | 73 | /**  | 
                                                        
| 74 | 74 | * Get actual array data  | 
                                                        
| 75 | + * @param integer $count  | 
                                                        |
| 75 | 76 | * @return array 2-dimensional array - each array contains the elements:  | 
                                                        
| 76 | 77 | * 0: eval/link object  | 
                                                        
| 77 | 78 | * 1: item name  | 
                                                        
@@ -285,7 +286,7 @@ discard block  | 
                                                    ||
| 285 | 286 | |
| 286 | 287 | /**  | 
                                                        
| 287 | 288 | * @param $item  | 
                                                        
| 288 | - * @param $ignore_score_color  | 
                                                        |
| 289 | + * @param boolean $ignore_score_color  | 
                                                        |
| 289 | 290 | * @return string  | 
                                                        
| 290 | 291 | */  | 
                                                        
| 291 | 292 | private function build_average_column($item, $ignore_score_color)  | 
                                                        
@@ -306,7 +307,7 @@ discard block  | 
                                                    ||
| 306 | 307 | |
| 307 | 308 | /**  | 
                                                        
| 308 | 309 | * @param $item  | 
                                                        
| 309 | - * @param $ignore_score_color  | 
                                                        |
| 310 | + * @param boolean $ignore_score_color  | 
                                                        |
| 310 | 311 | * @return string  | 
                                                        
| 311 | 312 | */  | 
                                                        
| 312 | 313 | private function build_result_column($item, $ignore_score_color)  | 
                                                        
@@ -323,7 +324,7 @@ discard block  | 
                                                    ||
| 323 | 324 | |
| 324 | 325 | /**  | 
                                                        
| 325 | 326 | * @param $item  | 
                                                        
| 326 | - * @param $ignore_score_color  | 
                                                        |
| 327 | + * @param boolean $ignore_score_color  | 
                                                        |
| 327 | 328 | * @return string  | 
                                                        
| 328 | 329 | */  | 
                                                        
| 329 | 330 | private function build_mask_column($item, $ignore_score_color)  | 
                                                        
@@ -339,7 +340,7 @@ discard block  | 
                                                    ||
| 339 | 340 | |
| 340 | 341 | /**  | 
                                                        
| 341 | 342 | * @param $coursecode  | 
                                                        
| 342 | - * @return mixed  | 
                                                        |
| 343 | + * @return string  | 
                                                        |
| 343 | 344 | */  | 
                                                        
| 344 | 345 | private function get_course_name_from_code_cached($coursecode)  | 
                                                        
| 345 | 346 |  	{ | 
                                                        
@@ -24,7 +24,7 @@  | 
                                                    ||
| 24 | 24 | * Search sessions by name, based on a search string  | 
                                                        
| 25 | 25 | * @param string Search string  | 
                                                        
| 26 | 26 | * @param int Deprecated param  | 
                                                        
| 27 | - * @return string Xajax response block  | 
                                                        |
| 27 | + * @return xajaxResponse Xajax response block  | 
                                                        |
| 28 | 28 | * @assert () === false  | 
                                                        
| 29 | 29 | */  | 
                                                        
| 30 | 30 | function search_sessions($needle, $id)  |