Completed
Push — 1.11.x ( c5cfcc...1cf9be )
by José
46:45 queued 17:54
created
main/inc/lib/exercise_show_functions.lib.php 1 patch
Doc Comments   +30 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,6 +72,11 @@  discard block
 block discarded – undo
72 72
      * @param string    Answer text
73 73
      * @param int       Exercise ID
74 74
      * @param int       Question ID
75
+     * @param integer $feedback_type
76
+     * @param string $answer
77
+     * @param integer $id
78
+     * @param integer $questionId
79
+     * @param boolean|string $showTotalScoreAndUserChoices
75 80
      * @return void
76 81
      */
77 82
     public static function display_calculated_answer(
@@ -111,6 +116,9 @@  discard block
 block discarded – undo
111 116
      * @param string    Answer text
112 117
      * @param int       Exercise ID
113 118
      * @param int       Question ID
119
+     * @param integer $feedback_type
120
+     * @param integer $exe_id
121
+     * @param integer $questionId
114 122
      * @return void
115 123
      */
116 124
     public static function display_free_answer(
@@ -140,10 +148,10 @@  discard block
 block discarded – undo
140 148
     }
141 149
 
142 150
     /**
143
-     * @param $feedback_type
151
+     * @param integer $feedback_type
144 152
      * @param $answer
145
-     * @param $id
146
-     * @param $questionId
153
+     * @param integer $id
154
+     * @param integer $questionId
147 155
      * @param null $fileUrl
148 156
      * @param int $results_disabled
149 157
      * @param int $questionScore
@@ -385,6 +393,14 @@  discard block
 block discarded – undo
385 393
      * @param integer Exercise ID
386 394
      * @param integer Question ID
387 395
      * @param boolean Whether to show the answer comment or not
396
+     * @param integer $feedback_type
397
+     * @param integer $answerType
398
+     * @param string $answer
399
+     * @param string $answerComment
400
+     * @param integer $answerCorrect
401
+     * @param integer $id
402
+     * @param integer $questionId
403
+     * @param boolean $showTotalScoreAndUserChoices
388 404
      * @return void
389 405
      */
390 406
     public static function display_multiple_answer_true_false(
@@ -489,6 +505,14 @@  discard block
 block discarded – undo
489 505
      * @param integer Exercise ID
490 506
      * @param integer Question ID
491 507
      * @param boolean Whether to show the answer comment or not
508
+     * @param integer $feedback_type
509
+     * @param integer $answerType
510
+     * @param string $answer
511
+     * @param string $answerComment
512
+     * @param integer $answerCorrect
513
+     * @param integer $id
514
+     * @param integer $questionId
515
+     * @param boolean $showTotalScoreAndUserChoices
492 516
      * @return void
493 517
      */
494 518
     public static function display_multiple_answer_combination_true_false(
@@ -578,9 +602,9 @@  discard block
 block discarded – undo
578 602
     }
579 603
 
580 604
     /**
581
-    * @param $feedback_type
582
-    * @param $exe_id
583
-    * @param $questionId
605
+    * @param integer $feedback_type
606
+    * @param integer $exe_id
607
+    * @param integer $questionId
584 608
     * @param null $questionScore
585 609
     * @param int $results_disabled
586 610
     */
Please login to merge, or discard this patch.
main/inc/lib/CourseChatUtils.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     /**
219 219
      * Disconnect a user from course chats
220
-     * @param $userId
220
+     * @param integer $userId
221 221
      */
222 222
     public static function exitChat($userId)
223 223
     {
@@ -1388,7 +1388,7 @@  discard block
 block discarded – undo
1388 1388
 
1389 1389
     /**
1390 1390
      * Get the emoji list to include in chat
1391
-     * @return array
1391
+     * @return string[]
1392 1392
      */
1393 1393
     public static function getEmojisToInclude()
1394 1394
     {
@@ -1693,7 +1693,7 @@  discard block
 block discarded – undo
1693 1693
 
1694 1694
     /**
1695 1695
      * Get the number of users connected in chat
1696
-     * @return mixed
1696
+     * @return integer
1697 1697
      */
1698 1698
     public function countUsersOnline()
1699 1699
     {
Please login to merge, or discard this patch.
main/lp/learnpath.class.php 1 patch
Doc Comments   +23 added lines, -19 removed lines patch added patch discarded remove patch
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     }
448 448
 
449 449
     /**
450
-     * @param $course_id
450
+     * @param integer $course_id
451 451
      * @return int
452 452
      */
453 453
     public function set_course_int_id($course_id)
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @param int $max_time_allowed
488 488
      * @param int $userId
489 489
      *
490
-     * @return int
490
+     * @return false|string
491 491
      */
492 492
     public function add_item(
493 493
         $parent,
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
      * @param array $courseInfo
1035 1035
      * @param integer $id    Learnpath ID
1036 1036
      * @param string $delete Whether to delete data or keep it (default: 'keep', others: 'remove')
1037
-     * @return boolean    True on success, false on failure (might change that to return number of elements deleted)
1037
+     * @return false|null    True on success, false on failure (might change that to return number of elements deleted)
1038 1038
      */
1039 1039
     public function delete($courseInfo = null, $id = null, $delete = 'keep')
1040 1040
     {
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
      * @param    integer $id Elem ID (0 if first)
1182 1182
      * @param    integer $remove Whether to remove the resource/data from the
1183 1183
      * system or leave it (default: 'keep', others 'remove')
1184
-     * @return    integer    Number of elements moved
1184
+     * @return    false|null    Number of elements moved
1185 1185
      * @todo implement resource removal
1186 1186
      */
1187 1187
     public function delete_item($id, $remove = 'keep')
@@ -1263,7 +1263,7 @@  discard block
 block discarded – undo
1263 1263
      * @param   array   $audio The array resulting of the $_FILES[mp3] element
1264 1264
      * @param   int     $max_time_allowed
1265 1265
      * @param   string  $url
1266
-     * @return  boolean True on success, false on error
1266
+     * @return  false|null True on success, false on error
1267 1267
      */
1268 1268
     public function edit_item(
1269 1269
         $id,
@@ -1788,7 +1788,7 @@  discard block
 block discarded – undo
1788 1788
 
1789 1789
     /**
1790 1790
      * Gets the first element URL.
1791
-     * @return    string    URL to load into the viewer
1791
+     * @return    false|null    URL to load into the viewer
1792 1792
      */
1793 1793
     public function first()
1794 1794
     {
@@ -2334,6 +2334,7 @@  discard block
 block discarded – undo
2334 2334
      * @param int $student_id
2335 2335
      * @param string Course code (optional)
2336 2336
      * @param int $sessionId
2337
+     * @param string $courseCode
2337 2338
      * @return	bool
2338 2339
      */
2339 2340
     public static function is_lp_visible_for_student(
@@ -2662,7 +2663,7 @@  discard block
 block discarded – undo
2662 2663
     /**
2663 2664
      * @param string $size
2664 2665
      * @param string $path_type
2665
-     * @return bool|string
2666
+     * @return string|false
2666 2667
      */
2667 2668
     public function get_preview_image_path($size = null, $path_type = 'web')
2668 2669
     {
@@ -2809,6 +2810,8 @@  discard block
 block discarded – undo
2809 2810
      * Returns the XML DOM document's node
2810 2811
      * @param	resource	Reference to a list of objects to search for the given ITEM_*
2811 2812
      * @param	string		The identifier to look for
2813
+     * @param DOMNodeList $children
2814
+     * @param string $id
2812 2815
      * @return	mixed		The reference to the element found with that identifier. False if not found
2813 2816
      */
2814 2817
     public function get_scorm_xml_node(& $children, $id)
@@ -2994,7 +2997,7 @@  discard block
 block discarded – undo
2994 2997
     /**
2995 2998
      * Generate and return the table of contents for this learnpath. The (flat) table returned can be
2996 2999
      * used by get_html_toc() to be ready to display
2997
-     * @return	array	TOC as a table with 4 elements per row: title, link, status and level
3000
+     * @return	boolean	TOC as a table with 4 elements per row: title, link, status and level
2998 3001
      */
2999 3002
     public function get_toc()
3000 3003
     {
@@ -3126,7 +3129,7 @@  discard block
 block discarded – undo
3126 3129
     }
3127 3130
 
3128 3131
     /**
3129
-     * @return array
3132
+     * @return string[]
3130 3133
      */
3131 3134
     public static function getChapterTypes()
3132 3135
     {
@@ -4030,7 +4033,7 @@  discard block
 block discarded – undo
4030 4033
      * Open a resource = initialise all local variables relative to this resource. Depending on the child
4031 4034
      * class, this might be redefined to allow several behaviours depending on the document type.
4032 4035
      * @param integer Resource ID
4033
-     * @return boolean True on success, false otherwise
4036
+     * @return boolean|null True on success, false otherwise
4034 4037
      */
4035 4038
     public function open($id)
4036 4039
     {
@@ -4199,7 +4202,7 @@  discard block
 block discarded – undo
4199 4202
      * Can be used as abstract
4200 4203
      * @param	integer	$lp_id Learnpath id
4201 4204
      * @param	string	$set_visibility New visibility (v/i - visible/invisible)
4202
-     * @return bool
4205
+     * @return null|false
4203 4206
      */
4204 4207
     public static function toggle_publish($lp_id, $set_visibility = 'v')
4205 4208
     {
@@ -4464,7 +4467,7 @@  discard block
 block discarded – undo
4464 4467
      * Make sure the results are saved with anoter method. This method should probably be
4465 4468
      * redefined in children classes.
4466 4469
      * To use a similar method  statically, use the create_new_attempt() method
4467
-     * @return string URL to load in the viewer
4470
+     * @return boolean URL to load in the viewer
4468 4471
      */
4469 4472
     public function restart()
4470 4473
     {
@@ -5041,7 +5044,7 @@  discard block
 block discarded – undo
5041 5044
 
5042 5045
     /**
5043 5046
      * Sets use_max_score
5044
-     * @param   string  $use_max_score Optional string giving the new location of this learnpath
5047
+     * @param   integer  $use_max_score Optional string giving the new location of this learnpath
5045 5048
      * @return  boolean True on success / False on error
5046 5049
      */
5047 5050
     public function set_use_max_score($use_max_score = 1)
@@ -5462,6 +5465,7 @@  discard block
 block discarded – undo
5462 5465
      * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags
5463 5466
      *
5464 5467
      * @param string 'seriousgame', 'single' or 'multiple'
5468
+     * @param string $mode
5465 5469
      * @return boolean
5466 5470
      * @author ndiechburg <[email protected]>
5467 5471
      **/
@@ -5504,7 +5508,7 @@  discard block
 block discarded – undo
5504 5508
     /**
5505 5509
      * Switch between multiple attempt, single attempt or serious_game mode (only for scorm)
5506 5510
      *
5507
-     * @return boolean
5511
+     * @return boolean|null
5508 5512
      * @author ndiechburg <[email protected]>
5509 5513
      **/
5510 5514
     public function switch_attempt_mode()
@@ -6829,7 +6833,7 @@  discard block
 block discarded – undo
6829 6833
     /**
6830 6834
      * Function that displays a list with al the resources that
6831 6835
      * could be added to the learning path
6832
-     * @return string
6836
+     * @return boolean
6833 6837
      */
6834 6838
     public function display_resources()
6835 6839
     {
@@ -10588,7 +10592,7 @@  discard block
 block discarded – undo
10588 10592
 
10589 10593
     /**
10590 10594
      * @param int $lp_id
10591
-     * @return bool
10595
+     * @return false|null
10592 10596
      */
10593 10597
     public function scorm_export_to_pdf($lp_id)
10594 10598
     {
@@ -11138,7 +11142,7 @@  discard block
 block discarded – undo
11138 11142
 
11139 11143
     /**
11140 11144
      * @param int $itemId
11141
-     * @return learnpathItem|false
11145
+     * @return string
11142 11146
      */
11143 11147
     public function getItem($itemId)
11144 11148
     {
@@ -11313,7 +11317,7 @@  discard block
 block discarded – undo
11313 11317
 
11314 11318
     /**
11315 11319
      * Get the item of exercise type (evaluation type)
11316
-     * @return array The final evaluation. Otherwise return false
11320
+     * @return integer The final evaluation. Otherwise return false
11317 11321
      */
11318 11322
     public function getFinalEvaluationItem()
11319 11323
     {
@@ -11530,7 +11534,7 @@  discard block
 block discarded – undo
11530 11534
     /**
11531 11535
      * Create a forum for this learning path
11532 11536
      * @param type $forumCategoryId
11533
-     * @return int The forum ID if was created. Otherwise return false
11537
+     * @return false|string The forum ID if was created. Otherwise return false
11534 11538
      */
11535 11539
     public function createForum($forumCategoryId)
11536 11540
     {
Please login to merge, or discard this patch.
main/inc/lib/groupmanager.lib.php 1 patch
Doc Comments   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @param int $tutor The user-id of the group's tutor
159 159
      * @param int $places How many people can subscribe to the new group
160 160
      *
161
-     * @return int
161
+     * @return string
162 162
      */
163 163
     public static function create_group($name, $category_id, $tutor, $places)
164 164
     {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      * @author Bart Mollet
387 387
      * @param  array  $groupInfo iid
388 388
      * @param string $course_code Default is current course
389
-     * @return integer              - number of groups deleted.
389
+     * @return boolean              - number of groups deleted.
390 390
      */
391 391
     public static function delete_groups($groupInfo, $course_code = null)
392 392
     {
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
      * @param bool Whether self registration is allowed or not
580 580
      * @param bool Whether self unregistration is allowed or not
581 581
      * @param int $categoryId
582
-     * @return bool TRUE if properties are successfully changed, false otherwise
582
+     * @return Statement TRUE if properties are successfully changed, false otherwise
583 583
      */
584 584
     public static function set_group_properties(
585 585
         $group_id,
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
      * @param int $group_id The iid of the group
733 733
      * @param string $course_code The course in which the group is (default =
734 734
      * current course)
735
-     * @return array The category
735
+     * @return integer The category
736 736
      */
737 737
     public static function get_category_from_group($group_id, $course_code = '')
738 738
     {
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
      * @param int $self_unregistration_allowed
817 817
      * @param int $maximum_number_of_students
818 818
      * @param int $groups_per_user
819
-     * @return mixed
819
+     * @return false|string
820 820
      */
821 821
     public static function create_category(
822 822
         $title,
@@ -1021,6 +1021,8 @@  discard block
 block discarded – undo
1021 1021
      * @param int $limit
1022 1022
      * @param bool $getCount
1023 1023
      * @param int $courseId
1024
+     * @param string $column
1025
+     * @param string $direction
1024 1026
      * @return array list of user id
1025 1027
      */
1026 1028
     public static function get_users(
@@ -1700,7 +1702,7 @@  discard block
 block discarded – undo
1700 1702
      * Unsubscribe user(s) from a specified group in current course
1701 1703
      * @param mixed $user_ids Can be an array with user-id's or a single user-id
1702 1704
      * @param array $groupInfo
1703
-     * @return bool TRUE if successful
1705
+     * @return boolean|null TRUE if successful
1704 1706
      */
1705 1707
     public static function unsubscribe_users($user_ids, $groupInfo)
1706 1708
     {
Please login to merge, or discard this patch.
main/inc/lib/text.lib.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@  discard block
 block discarded – undo
54 54
  * Converts the text of a html-document to a given encoding, the meta-tag is changed accordingly.
55 55
  * @param string $string                The input full-html document.
56 56
  * @param string                        The new encoding value to be set.
57
+ * @param string $encoding
57 58
  */
58 59
 function api_set_encoding_html(&$string, $encoding)
59 60
 {
@@ -463,7 +464,7 @@  discard block
 block discarded – undo
463 464
  * @since wordpress  2.8.1
464 465
  * @access private
465 466
  *
466
- * @param string|array $search The value being searched for, otherwise known as the needle. An array may be used to designate multiple needles.
467
+ * @param string[] $search The value being searched for, otherwise known as the needle. An array may be used to designate multiple needles.
467 468
  * @param string $subject The string being searched and replaced on, otherwise known as the haystack.
468 469
  * @return string The string with the replaced svalues.
469 470
  */
@@ -660,6 +661,7 @@  discard block
 block discarded – undo
660 661
  * @param string    The text to "cut"
661 662
  * @param int       Count of chars
662 663
  * @param bool      Whether to embed in a <span title="...">...</span>
664
+ * @param integer $maxchar
663 665
  * @return string
664 666
  * */
665 667
 function cut($text, $maxchar, $embed = false)
@@ -678,7 +680,7 @@  discard block
 block discarded – undo
678 680
  *
679 681
  * @param mixed     Number to convert
680 682
  * @param int       Decimal points 0=never, 1=if needed, 2=always
681
- * @return mixed    An integer or a float depends on the parameter
683
+ * @return string|null    An integer or a float depends on the parameter
682 684
  */
683 685
 function float_format($number, $flag = 1)
684 686
 {
@@ -723,7 +725,7 @@  discard block
 block discarded – undo
723 725
 /**
724 726
  * Gets the week from a day
725 727
  * @param   string   Date in UTC (2010-01-01 12:12:12)
726
- * @return  int      Returns an integer with the week number of the year
728
+ * @return  string      Returns an integer with the week number of the year
727 729
  */
728 730
 function get_week_from_day($date)
729 731
 {
@@ -770,6 +772,9 @@  discard block
 block discarded – undo
770 772
     return $output.$end;
771 773
 }
772 774
 
775
+/**
776
+ * @param string $glue
777
+ */
773 778
 function implode_with_key($glue, $array)
774 779
 {
775 780
     if (!empty($array)) {
@@ -849,7 +854,7 @@  discard block
 block discarded – undo
849 854
 /**
850 855
  * @param string $string
851 856
  * @param bool $capitalizeFirstCharacter
852
- * @return mixed
857
+ * @return string
853 858
  */
854 859
 function underScoreToCamelCase($string, $capitalizeFirstCharacter = true)
855 860
 {
Please login to merge, or discard this patch.
plugin/sepe/ws/Sepe.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -680,6 +680,9 @@
 block discarded – undo
680 680
         return $result;
681 681
     }
682 682
 
683
+    /**
684
+     * @param stdClass $obtenerAccionInput
685
+     */
683 686
     public function obtenerAccion($obtenerAccionInput)
684 687
     {
685 688
         /* Tracking Log */
Please login to merge, or discard this patch.
plugin/sepe/ws/service.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@
 block discarded – undo
35 35
         $this->setReturnResponse(true);
36 36
     }
37 37
 
38
+    /**
39
+     * @param string $tag
40
+     * @param string $namespace
41
+     */
38 42
     private function addNamespaceToTag($response, $tag, $namespace)
39 43
     {
40 44
         return str_replace(
Please login to merge, or discard this patch.
main/inc/lib/myspace.lib.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -2272,6 +2272,7 @@  discard block
 block discarded – undo
2272 2272
 
2273 2273
     /**
2274 2274
      * Adds missing user-information (which isn't required, like password, etc).
2275
+     * @return integer
2275 2276
      */
2276 2277
     function complete_missing_data($user)
2277 2278
     {
@@ -2872,6 +2873,9 @@  discard block
 block discarded – undo
2872 2873
     return $result;
2873 2874
 }
2874 2875
 
2876
+/**
2877
+ * @param string|null $end_date
2878
+ */
2875 2879
 function add_day_to($end_date)
2876 2880
 {
2877 2881
     $foo_date = strtotime($end_date);
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
@@ -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
     public function make_lp($files = array())
48 48
     {
@@ -100,6 +100,7 @@  discard block
 block discarded – undo
100 100
      * Manages dir/chapter splitting
101 101
      * @param	string	Chapter header
102 102
      * @param	string	Content
103
+     * @param string $content
103 104
      * @return	void
104 105
      */
105 106
     public function dealPerChapter($header, $content)
@@ -191,6 +192,7 @@  discard block
 block discarded – undo
191 192
      * Manages page splitting
192 193
      * @param	string	Page header
193 194
      * @param	string	Page body
195
+     * @param string $body
194 196
      * @return	void
195 197
      */
196 198
     public function dealPerPage($header, $body)
Please login to merge, or discard this patch.