Completed
Pull Request — 1.11.x (#1686)
by José
34:14
created
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.
main/webservices/registration.soap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2626,6 +2626,9 @@
 block discarded – undo
2626 2626
     )
2627 2627
 );
2628 2628
 
2629
+/**
2630
+ * @param string $type
2631
+ */
2629 2632
 function WSHelperActionOnUsers($params, $type) {
2630 2633
     if (!WSHelperVerifyKey($params)) {
2631 2634
         return returnError(WS_ERROR_SECRET_KEY);
Please login to merge, or discard this patch.
main/webservices/webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -342,6 +342,7 @@
 block discarded – undo
342 342
 	 * @param string User id value
343 343
 	 * @param int Set to 1 to subscribe, 0 to unsubscribe
344 344
 	 * @param int Status (STUDENT or TEACHER) Used for subscription only
345
+	 * @param integer $state
345 346
 	 * @return mixed True if subscription or unsubscription was successful, false otherwise
346 347
 	 */
347 348
 	protected function changeUserSubscription($course_id_field_name, $course_id_value, $user_id_field_name, $user_id_value, $state, $status = STUDENT) {
Please login to merge, or discard this patch.
main/work/downloadfolder.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.