Completed
Push — 1.11.x ( 30c239...4463da )
by José
63:32 queued 32:15
created
main/inc/lib/nusoap/class.soap_parser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	* @param    string $encoding character encoding scheme of message
53 53
 	* @param    string $method method for which XML is parsed (unused?)
54 54
 	* @param    bool $decode_utf8 whether to decode UTF-8 to ISO-8859-1
55
-	* @return void|bool
55
+	* @return false|null
56 56
 	* @access   public
57 57
 	*/
58 58
 	function __construct($xml,$encoding='UTF-8',$method='',$decode_utf8=true)
Please login to merge, or discard this patch.
main/inc/lib/security.lib.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,8 @@  discard block
 block discarded – undo
46 46
      * @param	string	Absolute path to be checked (with trailing slash)
47 47
      * @param	string	Checker path under which the path
48 48
      * should be (absolute path, with trailing slash, get it from api_get_path(SYS_COURSE_PATH))
49
+     * @param string $abs_path
50
+     * @param string $checker_path
49 51
      * @return	bool	True if the path is under the checker, false otherwise
50 52
      */
51 53
     public static function check_abs_path($abs_path, $checker_path)
@@ -257,6 +259,7 @@  discard block
 block discarded – undo
257 259
      * @param string	The variable to filter for XSS, this params can be a string or an array (example : array(x,y))
258 260
      * @param int The user status,constant allowed (STUDENT, COURSEMANAGER, ANONYMOUS, COURSEMANAGERLOWSECURITY)
259 261
      * @param bool $filter_terms
262
+     * @param integer $user_status
260 263
      * @return	mixed	Filtered string or array
261 264
      */
262 265
     public static function remove_XSS($var, $user_status = null, $filter_terms = false)
@@ -393,7 +396,7 @@  discard block
 block discarded – undo
393 396
      * This method provides specific protection (against XSS and other kinds of attacks) for static images (icons) used by the system.
394 397
      * Image paths are supposed to be given by programmers - people who know what they do, anyway, this method encourages
395 398
      * a safe practice for generating icon paths, without using heavy solutions based on HTMLPurifier for example.
396
-     * @param string $img_path          The input path of the image, it could be relative or absolute URL.
399
+     * @param string $image_path          The input path of the image, it could be relative or absolute URL.
397 400
      * @return string                   Returns sanitized image path or an empty string when the image path is not secure.
398 401
      * @author Ivan Tcholakov, March 2011
399 402
      */
Please login to merge, or discard this patch.
main/inc/lib/skill.lib.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -348,6 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     /**
350 350
      * Gets an element
351
+     * @param integer $gradebook_id
351 352
      */
352 353
     public function get_skill_info($skill_id, $gradebook_id)
353 354
     {
@@ -577,7 +578,7 @@  discard block
 block discarded – undo
577 578
      * Gets an element
578 579
      * @param int $id
579 580
      *
580
-     * @return array|mixed
581
+     * @return integer
581 582
      */
582 583
     public function get($id)
583 584
     {
@@ -923,7 +924,7 @@  discard block
 block discarded – undo
923 924
     /**
924 925
      * Get user's skills
925 926
      *
926
-     * @param int $userId User's id
927
+     * @param integer $user_id User's id
927 928
      * @param bool $get_skill_data
928 929
      */
929 930
     public function get_user_skills($user_id, $get_skill_data = false)
@@ -1133,7 +1134,7 @@  discard block
 block discarded – undo
1133 1134
      * @param int skill id
1134 1135
      * @param bool return a flat array or not
1135 1136
      * @param int depth of the skills
1136
-     * @return json
1137
+     * @return string
1137 1138
      */
1138 1139
     public function get_skills_tree_json(
1139 1140
         $user_id = null,
Please login to merge, or discard this patch.
main/inc/lib/sub_language.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
      * Get all files of lang folder (forum.inc.php,gradebook.inc.php,notebook.inc.php)
42 42
      * @param string The lang path folder  (/var/www/my_lms/main/lang/spanish)
43 43
      * @param bool true if we only want the "subname" trad4all instead of  trad4all.inc.php
44
+     * @param string $path
44 45
      *
45 46
      * @return array All file of lang folder
46 47
      */
@@ -91,6 +92,7 @@  discard block
 block discarded – undo
91 92
     /**
92 93
      * Get all information of language
93 94
      * @param Integer The parent id(Language father id)
95
+     * @param integer $parent_id
94 96
      * @return array All information about language
95 97
      */
96 98
     public static function get_all_information_of_language($parent_id)
@@ -109,6 +111,7 @@  discard block
 block discarded – undo
109 111
     /**
110 112
      * Get all information of chamilo file
111 113
      * @param string The chamilo path file (/var/www/chamilo/main/lang/spanish/gradebook.inc.php)
114
+     * @param string $system_path_file
112 115
      * @patam Bool Whether we want to remove the '$' prefix in the results or not
113 116
      * @return array Contains all information of chamilo file
114 117
      */
@@ -369,7 +372,7 @@  discard block
 block discarded – undo
369 372
     /**
370 373
      * Make available the language
371 374
      * @param int The language id
372
-     * @return void
375
+     * @return boolean
373 376
      */
374 377
     public static function make_available_language($language_id)
375 378
     {
Please login to merge, or discard this patch.
main/inc/lib/system_announcements.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 block discarded – undo
306 306
      * @param bool  $add_to_calendar
307 307
      * @param bool  $sendEmailTest
308 308
      *
309
-     * @return mixed  insert_id on success, false on failure
309
+     * @return false|string  insert_id on success, false on failure
310 310
      */
311 311
     public static function add_announcement(
312 312
         $title,
Please login to merge, or discard this patch.
main/lp/lp_ajax_start_timer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 /**
10 10
  * Start a timer and hand it back to the JS by assigning the current time (of start) to
11 11
  * var asset_timer
12
- * @return string JavaScript time intializer
12
+ * @return integer JavaScript time intializer
13 13
  */
14 14
 function start_timer()
15 15
 {
Please login to merge, or discard this patch.
main/lp/lp_final_item.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
  * @param int $sessionId
130 130
  * @param string $downloadCertificateLink
131 131
  * @param string $badgeLink
132
- * @return mixed|string
132
+ * @return string
133 133
  */
134 134
 function generateLPFinalItemTemplate($lpItemId, $courseCode, $sessionId = 0, $downloadCertificateLink = '', $badgeLink = '')
135 135
 {
Please login to merge, or discard this patch.
main/lp/openoffice_text.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * Gets html pages and compose them into a learning path
44 44
      * @param	array	The files that will compose the generated learning path. Unused so far.
45
-     * @return	boolean	False if file does not exit. Nothing otherwise.
45
+     * @return	false|null	False if file does not exit. Nothing otherwise.
46 46
      */
47 47
     function make_lp($files = array())
48 48
     {
@@ -96,6 +96,7 @@  discard block
 block discarded – undo
96 96
      * Manages dir/chapter splitting
97 97
      * @param	string	Chapter header
98 98
      * @param	string	Content
99
+     * @param string $content
99 100
      * @return	void
100 101
      */
101 102
     function dealPerChapter($header, $content)
@@ -187,6 +188,7 @@  discard block
 block discarded – undo
187 188
      * Manages page splitting
188 189
      * @param	string	Page header
189 190
      * @param	string	Page body
191
+     * @param string $body
190 192
      * @return	void
191 193
      */
192 194
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/lp/openoffice_text_document.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages dir/chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -181,6 +182,7 @@  discard block
 block discarded – undo
181 182
      * Manages page splitting
182 183
      * @param	string	Page header
183 184
      * @param	string	Page body
185
+     * @param string $body
184 186
      * @return	void
185 187
      */
186 188
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.