Completed
Push — 1.11.x ( 3ca1af...7f27ad )
by José
93:15 queued 54:45
created
main/inc/lib/extra_field_value.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * This function is used with $extraField->addElements()
74 74
      * @param array $params array for the insertion into the *_field_values table
75 75
      *
76
-     * @return mixed false on empty params, void otherwise
76
+     * @return false|null false on empty params, void otherwise
77 77
      * @assert (array()) === false
78 78
      */
79 79
     public function saveFieldValues($params)
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
      * @param int $item_id Item ID (It could be a session_id, course_id or user_id)
531 531
      * @param int $field_id Field ID (the ID from the *_field table)
532 532
      * @param bool $transform Whether to transform the result to a human readable strings
533
-     * @return mixed A structured array with the field_id and field_value, or false on error
533
+     * @return string A structured array with the field_id and field_value, or false on error
534 534
      * @assert (-1,-1) === false
535 535
      */
536 536
     public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
      * @param int $item_id Item ID from the original table
624 624
      * @param string $field_variable The name of the field we are looking for
625 625
      * @param bool $transform
626
-     * @param bool $allVisibility
626
+     * @param bool $visibility
627 627
      *
628 628
      * @return mixed Array of results, or false on error or not found
629 629
      * @assert (-1,'') === false
Please login to merge, or discard this patch.
main/inc/lib/fileUpload.lib.php 1 patch
Doc Comments   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
  * Returns the name without extension, used for the title
74 74
  *
75 75
  * @param string $name
76
- * @return name without the extension
76
+ * @return string without the extension
77 77
  */
78 78
 function get_document_title($name) {
79 79
     // If they upload .htaccess...
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
  * This function checks if the upload succeeded
87 87
  *
88 88
  * @param array $uploaded_file ($_FILES)
89
- * @return true if upload succeeded
89
+ * @return boolean if upload succeeded
90 90
  */
91 91
 function process_uploaded_file($uploaded_file, $show_output = true)
92 92
 {
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
  * @param array  $courseInfo
1020 1020
  * @param array  $userInfo
1021 1021
  * @param array  $uploaded_file - follows the $_FILES Structure
1022
- * @param string $upload_path   - destination of the upload.
1022
+ * @param string $uploadPath   - destination of the upload.
1023 1023
  *                               This path is to append to $base_work_dir
1024 1024
  * @param string $base_work_dir  - base working directory of the module
1025 1025
  * @param int    $maxFilledSpace  - amount of bytes to not exceed in the base
@@ -1200,7 +1200,7 @@  discard block
 block discarded – undo
1200 1200
  * @param int $session_id Session ID, if any
1201 1201
  * @param int $userId creator id
1202 1202
  * 
1203
- * @return int id if inserted document
1203
+ * @return string|false id if inserted document
1204 1204
  */
1205 1205
 function add_document(
1206 1206
     $_course,
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
  *
1335 1335
  * @author	Olivier Cauberghe <[email protected]>
1336 1336
  * @param	path+filename eg: /main/document/document.php
1337
- * @return	The directory depth
1337
+ * @return	integer directory depth
1338 1338
  */
1339 1339
 function get_levels($filename) {
1340 1340
     $levels = explode('/', $filename);
@@ -1351,6 +1351,8 @@  discard block
 block discarded – undo
1351 1351
  * @author	Olivier Cauberghe <[email protected]>
1352 1352
  * @param	path,filename
1353 1353
  * action:	Adds an entry to the document table with the default settings.
1354
+ * @param string $upload_path
1355
+ * @param string $filename
1354 1356
  */
1355 1357
 function set_default_settings($upload_path, $filename, $filetype = 'file')
1356 1358
 {
@@ -1777,6 +1779,7 @@  discard block
 block discarded – undo
1777 1779
 
1778 1780
 @author Roan Embrechts
1779 1781
 @version 0.6
1782
+ * @param string $buffer
1780 1783
  */
1781 1784
 function api_replace_links_in_string($upload_path, $buffer) {
1782 1785
     // Search for hyperlinks
@@ -2012,7 +2015,6 @@  discard block
 block discarded – undo
2012 2015
  * @param int $groupId
2013 2016
  * @param bool $output
2014 2017
  * @param array $parent
2015
- * @param string $uploadPath
2016 2018
  *
2017 2019
  */
2018 2020
 function add_all_documents_in_folder_to_database(
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/Rule/HTML.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,6 @@
 block discarded – undo
25 25
      * Get allowed tags
26 26
      * @param int $mode NO_HTML, STUDENT_HTML, TEACHER_HTML,
27 27
      * STUDENT_HTML_FULLPAGE or TEACHER_HTML_FULLPAGE
28
-     * @param boolean $fullpage If true, the allowed tags for full-page editing
29
-     * are returned.
30 28
      */
31 29
     static function get_allowed_tags($mode)
32 30
     {
Please login to merge, or discard this patch.
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 nusoap_parser($xml,$encoding='UTF-8',$method='',$decode_utf8=true){
Please login to merge, or discard this patch.
main/inc/lib/pdf.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * @param   string  pdf name
193 193
      * @param   string  course code (if you are using html that are located in the document tool you must provide this)
194 194
      * @param bool Whether to print the header, footer and watermark (true) or just the content (false)
195
-     * @return bool
195
+     * @return false|null
196 196
      */
197 197
     public function html_to_pdf(
198 198
         $html_file_array,
@@ -766,7 +766,7 @@  discard block
 block discarded – undo
766 766
     }
767 767
 
768 768
     /**
769
-     * @param array $header html content
769
+     * @param string $header html content
770 770
      */
771 771
     public function set_custom_header($header)
772 772
     {
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
     }
775 775
 
776 776
     /**
777
-     * @param array $footer html content
777
+     * @param string $footer html content
778 778
      */
779 779
     public function set_custom_footer($footer)
780 780
     {
Please login to merge, or discard this patch.
main/exercise/calculated_answer.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param null $feedback_type
59 59
      * @param null $counter
60 60
      * @param null $score
61
-     * @return null|string
61
+     * @return string
62 62
      */
63 63
     function return_header($feedback_type = null, $counter = null, $score = null)
64 64
     {
Please login to merge, or discard this patch.
main/exercise/exercise.class.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 
355 355
     /**
356
-     * @return int
356
+     * @return string
357 357
      */
358 358
     public function selectPassPercentage()
359 359
     {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      * tells if questions are selected randomly, and if so returns the draws
463 463
      *
464 464
      * @author Olivier Brouckaert
465
-     * @return integer - 0 if not random, otherwise the draws
465
+     * @return boolean - 0 if not random, otherwise the draws
466 466
      */
467 467
     public function isRandom()
468 468
     {
@@ -2830,7 +2830,7 @@  discard block
 block discarded – undo
2830 2830
      * @param int  int lp id
2831 2831
      * @param int  int lp item id
2832 2832
      * @param int  int lp item_view id
2833
-     * @param float $weight
2833
+     * @param integer $weight
2834 2834
      * @param array question list
2835 2835
      */
2836 2836
     public function save_stat_track_exercise_info(
@@ -5327,6 +5327,9 @@  discard block
 block discarded – undo
5327 5327
         }
5328 5328
     }
5329 5329
 
5330
+    /**
5331
+     * @param integer $exe_id
5332
+     */
5330 5333
     function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id)
5331 5334
     {
5332 5335
         if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) {
@@ -5478,7 +5481,7 @@  discard block
 block discarded – undo
5478 5481
      * @param int     Maximum number of attempts (0 if no limit)
5479 5482
      * @param int     Feedback type
5480 5483
      * @todo this was function was added due the import exercise via CSV
5481
-     * @return    int New exercise ID
5484
+     * @return    string New exercise ID
5482 5485
      */
5483 5486
     public function createExercise(
5484 5487
         $title,
@@ -6813,7 +6816,7 @@  discard block
 block discarded – undo
6813 6816
      * @param bool $show_comment
6814 6817
      * @param null $exercise_feedback
6815 6818
      * @param bool $show_answers
6816
-     * @param null $modelType
6819
+     * @param integer $modelType
6817 6820
      * @param bool $categoryMinusOne
6818 6821
      * @return bool|null|string
6819 6822
      */
Please login to merge, or discard this patch.
main/exercise/export/qti2/qti2_classes.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Return the XML flow for the possible answers.
74 74
      *
75
+     * @param string $questionStatment
75 76
      */
76 77
     public function imsExportResponses($questionIdent, $questionStatment)
77 78
     {
@@ -147,6 +148,7 @@  discard block
 block discarded – undo
147 148
      * Export the text with missing words.
148 149
      *
149 150
      *
151
+     * @param string $questionStatment
150 152
      */
151 153
     public function imsExportResponses($questionIdent, $questionStatment)
152 154
     {
@@ -204,6 +206,7 @@  discard block
 block discarded – undo
204 206
 {
205 207
     /**
206 208
      * Export the question part as a matrix-choice, with only one possible answer per line.
209
+     * @param string $questionStatment
207 210
      */
208 211
     public function imsExportResponses($questionIdent, $questionStatment)
209 212
     {
@@ -295,6 +298,7 @@  discard block
 block discarded – undo
295 298
     /**
296 299
      * TODO update this to match hot spots instead of copying matching
297 300
      * Export the question part as a matrix-choice, with only one possible answer per line.
301
+     * @param string $questionStatment
298 302
      */
299 303
     public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='')
300 304
     {
@@ -382,6 +386,7 @@  discard block
 block discarded – undo
382 386
     /**
383 387
      * TODO implement
384 388
      * Export the question part as a matrix-choice, with only one possible answer per line.
389
+     * @param string $questionStatment
385 390
      */
386 391
     public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='')
387 392
 	{
Please login to merge, or discard this patch.
main/exercise/hotpotatoes.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
  * @param    reference    Reference to the array to search
260 260
  * @param    string       Node we are looking for in the array
261 261
  * @param string $node
262
- * @return   mixed        Node name or false if not found
262
+ * @return   false|string        Node name or false if not found
263 263
  */
264 264
 function myarraysearch(&$array, $node)
265 265
 {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * Searches an image name into an array.
281 281
  * @param    reference        Reference to an array to search
282 282
  * @param    string           String to look for
283
- * @return   mixed            String given if found, false otherwise
283
+ * @return   false|string            String given if found, false otherwise
284 284
  * @uses     myarraysearch    This function is just an additional layer on the myarraysearch() function
285 285
  */
286 286
 function CheckImageName(&$imgparams, $string)
Please login to merge, or discard this patch.