Completed
Push — 1.10.x ( 107530...61bd88 )
by Yannick
161:59 queued 121:42
created
main/inc/lib/database.lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param string $table
68 68
      *
69
-     * @return mixed
69
+     * @return string
70 70
      */
71 71
     public static function get_main_table($table)
72 72
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 
266 266
     /**
267 267
      * Frees all the memory associated with the provided result identifier.
268
-     * @return bool     Returns TRUE on success or FALSE on failure.
268
+     * @return boolean|null     Returns TRUE on success or FALSE on failure.
269 269
      * Notes: Use this method if you are concerned about how much memory is being used for queries that return large result sets.
270 270
      * Anyway, all associated result memory is automatically freed at the end of the script's execution.
271 271
      */
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      * @param array     $attributes
382 382
      * @param bool      $show_query
383 383
      *
384
-     * @return bool|int
384
+     * @return false|string
385 385
      */
386 386
     public static function insert($table_name, $attributes, $show_query = false)
387 387
     {
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
     }
675 675
 
676 676
     /**
677
-     * @param $table
677
+     * @param string $table
678 678
      * @return \Doctrine\DBAL\Schema\Column[]
679 679
      */
680 680
     public static function listTableColumns($table) 
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +20 added lines, -14 removed lines patch added patch discarded remove patch
@@ -437,6 +437,7 @@  discard block
 block discarded – undo
437 437
  * If null, the timezone will be determined based on user preference,
438 438
  * or timezone chosen by the admin for the platform.
439 439
  * @param string The timezone to be converted from. If null, UTC will be assumed.
440
+ * @param string $to_timezone
440 441
  * @return string The converted time formatted as Y-m-d H:i:s
441 442
  *
442 443
  * @author Guillaume Viguier <[email protected]>
@@ -793,6 +794,7 @@  discard block
 block discarded – undo
793 794
  * @param mixed The time to be converted
794 795
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
795 796
  * @param string Timezone to be converted from. If null, UTC will be assumed.
797
+ * @param string $from_timezone
796 798
  * @return string Converted and localized date
797 799
  *
798 800
  * @author Guillaume Viguier <[email protected]>
@@ -862,7 +864,7 @@  discard block
 block discarded – undo
862 864
  * @param int/string $format (optional)	The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
863 865
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
864 866
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
865
- * @return bool							The result is sort of full name of the person.
867
+ * @return string							The result is sort of full name of the person.
866 868
  * Sample results:
867 869
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
868 870
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -956,7 +958,7 @@  discard block
 block discarded – undo
956 958
 
957 959
 /**
958 960
  * Checks whether a given format represents person name in Western order (for which first name is first).
959
- * @param int/string $format (optional)	The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
961
+ * @param integer $format (optional)	The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
960 962
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
961 963
  * @return bool							The result TRUE means that the order is first_name last_name, FALSE means last_name first_name.
962 964
  * Note: You may use this function for determing the order of the fields or columns "First name" and "Last name" in forms, tables and reports.
@@ -1184,8 +1186,8 @@  discard block
 block discarded – undo
1184 1186
 
1185 1187
 /**
1186 1188
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1187
- * @param mixed $search					String or array of strings to be found.
1188
- * @param mixed $replace				String or array of strings used for replacement.
1189
+ * @param string $search					String or array of strings to be found.
1190
+ * @param string $replace				String or array of strings used for replacement.
1189 1191
  * @param mixed $subject				String or array of strings being searched.
1190 1192
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1191 1193
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1248,10 +1250,10 @@  discard block
 block discarded – undo
1248 1250
 /**
1249 1251
  * Finds first occurrence of a string within another, case insensitive.
1250 1252
  * @param string $haystack					The string from which to get the first occurrence.
1251
- * @param mixed $needle						The string to be found.
1253
+ * @param string $needle						The string to be found.
1252 1254
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1253 1255
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1254
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1256
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1255 1257
  * Notes:
1256 1258
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1257 1259
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1307,7 +1309,7 @@  discard block
 block discarded – undo
1307 1309
  * @param mixed $needle						The string which first character is to be found.
1308 1310
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1309 1311
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1310
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1312
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1311 1313
  * Notes:
1312 1314
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1313 1315
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1357,7 +1359,7 @@  discard block
 block discarded – undo
1357 1359
  * @param string $needle				The string to be found.
1358 1360
  * @param int $offset (optional)		$offset may be specified to begin searching an arbitrary position. Negative values will stop searching at an arbitrary point prior to the end of the string.
1359 1361
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1360
- * @return mixed						Returns the numeric position of the first occurrence of $needle in the $haystack, or FALSE if $needle is not found.
1362
+ * @return integer|null						Returns the numeric position of the first occurrence of $needle in the $haystack, or FALSE if $needle is not found.
1361 1363
  * Note: The first character's position is 0, the second character position is 1, and so on.
1362 1364
  * This function is aimed at replacing the functions strrpos() and mb_strrpos() for human-language strings.
1363 1365
  * @link http://php.net/manual/en/function.strrpos
@@ -1374,7 +1376,7 @@  discard block
 block discarded – undo
1374 1376
  * @param mixed $needle						The string to be found.
1375 1377
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1376 1378
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1377
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1379
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1378 1380
  * Notes:
1379 1381
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1380 1382
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1517,7 +1519,7 @@  discard block
 block discarded – undo
1517 1519
  * 										Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1.
1518 1520
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1519 1521
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1520
- * @return int|boolean					Returns the number of times pattern matches or FALSE if an error occurred.
1522
+ * @return integer					Returns the number of times pattern matches or FALSE if an error occurred.
1521 1523
  * @link http://php.net/preg_match
1522 1524
  */
1523 1525
 function api_preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0, $encoding = null) {
@@ -1540,7 +1542,7 @@  discard block
 block discarded – undo
1540 1542
  * If no order flag is given, PREG_PATTERN_ORDER is assumed.
1541 1543
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1542 1544
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1543
- * @return int|boolean					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1545
+ * @return integer					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1544 1546
  * @link http://php.net/preg_match_all
1545 1547
  */
1546 1548
 function api_preg_match_all($pattern, $subject, &$matches, $flags = PREG_PATTERN_ORDER, $offset = 0, $encoding = null) {
@@ -1555,8 +1557,8 @@  discard block
 block discarded – undo
1555 1557
 
1556 1558
 /**
1557 1559
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1558
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1559
- * @param string|array $replacement		The string or an array with strings to replace.
1560
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1561
+ * @param string $replacement		The string or an array with strings to replace.
1560 1562
  * @param string|array $subject			The string or an array with strings to search and replace.
1561 1563
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1562 1564
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1808,6 +1810,7 @@  discard block
 block discarded – undo
1808 1810
 /**
1809 1811
  * Checks a string for UTF-8 validity.
1810 1812
  *
1813
+ * @param string $string
1811 1814
  */
1812 1815
 function api_is_valid_utf8(&$string)
1813 1816
 {
@@ -1950,7 +1953,7 @@  discard block
 block discarded – undo
1950 1953
 /**
1951 1954
  * Replaces non-valid formats for person names with the default (English) format.
1952 1955
  * @param string $format	The input format to be verified.
1953
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1956
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1954 1957
  */
1955 1958
 function _api_validate_person_name_format($format) {
1956 1959
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -2077,6 +2080,9 @@  discard block
 block discarded – undo
2077 2080
 
2078 2081
 // This function checks whether the function _api_convert_encoding() (the php-
2079 2082
 // implementation) is able to convert from/to a given encoding.
2083
+/**
2084
+ * @param string $encoding
2085
+ */
2080 2086
 function _api_convert_encoding_supports($encoding) {
2081 2087
     static $supports = array();
2082 2088
     if (!isset($supports[$encoding])) {
Please login to merge, or discard this patch.
main/inc/lib/magpierss/extlib/Snoopy.class.inc 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -366,6 +366,9 @@  discard block
 block discarded – undo
366 366
 	Output:		$expandedLinks	the expanded links
367 367
 \*======================================================================*/
368 368
 
369
+	/**
370
+	 * @param string $links
371
+	 */
369 372
 	private function _expandlinks($links,$URI)
370 373
 	{
371 374
 		
@@ -400,6 +403,9 @@  discard block
 block discarded – undo
400 403
 	Output:		
401 404
 \*======================================================================*/
402 405
 	
406
+	/**
407
+	 * @param string $http_method
408
+	 */
403 409
 	private function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="")
404 410
 	{
405 411
 		if($this->passcookies && $this->_redirectaddr)
@@ -583,6 +589,9 @@  discard block
 block discarded – undo
583 589
 	Output:		
584 590
 \*======================================================================*/
585 591
 	
592
+	/**
593
+	 * @param string $http_method
594
+	 */
586 595
 	private function _httpsrequest($url,$URI,$http_method,$content_type="",$body="")
587 596
 	{
588 597
 		if($this->passcookies && $this->_redirectaddr)
@@ -766,6 +775,9 @@  discard block
 block discarded – undo
766 775
 	Input:		$fp	file pointer
767 776
 \*======================================================================*/
768 777
 	
778
+	/**
779
+	 * @param boolean $fp
780
+	 */
769 781
 	private function _connect(&$fp)
770 782
 	{
771 783
 		if(!empty($this->proxy_host) && !empty($this->proxy_port))
Please login to merge, or discard this patch.
main/inc/lib/magpierss/rss_cache.inc 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
50 50
     Input:      url from wich the rss file was fetched
51 51
     Output:     true on sucess  
52 52
 \*=======================================================================*/
53
+    /**
54
+     * @param string $url
55
+     */
53 56
     public function set ($url, $rss) {
54 57
         $this->ERROR = "";
55 58
         $cache_file = $this->file_name( $url );
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
     Input:      url from wich the rss file was fetched
77 80
     Output:     cached object on HIT, false on MISS 
78 81
 \*=======================================================================*/ 
82
+    /**
83
+     * @param string $url
84
+     */
79 85
     public function get ($url) {
80 86
         $this->ERROR = "";
81 87
         $cache_file = $this->file_name( $url );
@@ -112,6 +118,9 @@  discard block
 block discarded – undo
112 118
     Input:      url from wich the rss file was fetched
113 119
     Output:     cached object on HIT, false on MISS 
114 120
 \*=======================================================================*/     
121
+    /**
122
+     * @param string $url
123
+     */
115 124
     public function check_cache ( $url ) {
116 125
         $this->ERROR = "";
117 126
         $filename = $this->file_name( $url );
@@ -158,6 +167,9 @@  discard block
 block discarded – undo
158 167
 /*=======================================================================*\
159 168
     Function:   unserialize
160 169
 \*=======================================================================*/     
170
+    /**
171
+     * @param string $data
172
+     */
161 173
     public function unserialize ( $data ) {
162 174
         return unserialize( $data );
163 175
     }
Please login to merge, or discard this patch.
main/inc/lib/magpierss/rss_fetch.inc 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
228 228
     Purpose:    set MAGPIE_ERROR, and trigger error
229 229
 \*=======================================================================*/
230 230
 
231
+/**
232
+ * @param integer $lvl
233
+ */
231 234
 function error ($errormsg, $lvl=E_USER_WARNING) {
232 235
         global $MAGPIE_ERROR;
233 236
         
@@ -242,6 +245,9 @@  discard block
 block discarded – undo
242 245
         }
243 246
 }
244 247
 
248
+/**
249
+ * @param integer $lvl
250
+ */
245 251
 function debug ($debugmsg, $lvl=E_USER_NOTICE) {
246 252
     trigger_error("MagpieRSS [debug] $debugmsg", $lvl);
247 253
 }
@@ -288,6 +294,9 @@  discard block
 block discarded – undo
288 294
     Input:      an HTTP response object (see Snoopy)
289 295
     Output:     parsed RSS object (see rss_parse)
290 296
 \*=======================================================================*/
297
+/**
298
+ * @param Snoopy $resp
299
+ */
291 300
 function _response_to_rss ($resp) {
292 301
     $rss = new MagpieRSS( $resp->results, MAGPIE_OUTPUT_ENCODING, MAGPIE_INPUT_ENCODING, MAGPIE_DETECT_ENCODING );
293 302
     
Please login to merge, or discard this patch.
main/inc/lib/magpierss/rss_parse.inc 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -449,6 +449,10 @@  discard block
 block discarded – undo
449 449
     /**
450 450
     * return XML parser, and possibly re-encoded source
451 451
     *
452
+    * @param string $source
453
+    * @param string $out_enc
454
+    * @param string|null $in_enc
455
+    * @param boolean $detect
452 456
     */
453 457
     public function create_parser($source, $out_enc, $in_enc, $detect) {
454 458
         if ( substr(phpversion(),0,1) == 5) {
@@ -558,6 +562,9 @@  discard block
 block discarded – undo
558 562
         }
559 563
     }
560 564
 
565
+    /**
566
+     * @param integer $lvl
567
+     */
561 568
     public function error ($errormsg, $lvl=E_USER_WARNING) {
562 569
         // append PHP's error message if track_errors enabled
563 570
         if ( isset($php_errormsg) ) { 
@@ -593,6 +600,9 @@  discard block
 block discarded – undo
593 600
 	define("CASE_LOWER",0);
594 601
 
595 602
 
603
+	/**
604
+	 * @param integer $case
605
+	 */
596 606
 	function array_change_key_case($array,$case=CASE_LOWER) {
597 607
        if ($case=CASE_LOWER) $cmd=strtolower;
598 608
        elseif ($case=CASE_UPPER) $cmd=strtoupper;
Please login to merge, or discard this patch.
main/inc/lib/pear/excelreader/OLERead.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 //echo $data[ROOT_START_BLOCK_POS];
24 24
 //function log
25 25
 
26
+/**
27
+ * @param integer $pos
28
+ */
26 29
 function GetInt4d($data, $pos)
27 30
 {
28 31
 	$value = ord($data[$pos]) | (ord($data[$pos+1])	<< 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
Please login to merge, or discard this patch.
main/inc/lib/exercise_show_functions.lib.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
 	 * @param int       Question ID
25 25
      * @param int $resultsDisabled
26 26
      * @param string $originalStudentAnswer
27
+     * @param integer $feedbackType
28
+     * @param integer $id
29
+     * @param integer $questionId
27 30
 	 * @return void
28 31
 	 */
29 32
 	public static function display_fill_in_blanks_answer($feedbackType, $answer, $id, $questionId, $resultsDisabled, $originalStudentAnswer = '')
@@ -62,6 +65,9 @@  discard block
 block discarded – undo
62 65
      * @param string    Answer text
63 66
      * @param int       Exercise ID
64 67
      * @param int       Question ID
68
+     * @param integer $feedback_type
69
+     * @param integer $id
70
+     * @param integer $questionId
65 71
      * @return void
66 72
      */
67 73
     public static function display_calculated_answer($feedback_type, $answer, $id, $questionId)
@@ -95,6 +101,9 @@  discard block
 block discarded – undo
95 101
 	 * @param string    Answer text
96 102
 	 * @param int       Exercise ID
97 103
 	 * @param int       Question ID
104
+	 * @param integer $feedback_type
105
+	 * @param integer $exe_id
106
+	 * @param integer $questionId
98 107
 	 * @return void
99 108
 	 */
100 109
 	public static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null)
@@ -117,6 +126,12 @@  discard block
 block discarded – undo
117 126
         }
118 127
 	}
119 128
 
129
+	/**
130
+	 * @param integer $feedback_type
131
+	 * @param integer $id
132
+	 * @param integer $questionId
133
+	 * @param Nanogong $nano
134
+	 */
120 135
 	public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null)
121 136
     {
122 137
         if (isset($nano)) {
@@ -234,6 +249,11 @@  discard block
 block discarded – undo
234 249
 	 * @param integer Exercise ID
235 250
 	 * @param integer Question ID
236 251
 	 * @param boolean Whether to show the answer comment or not
252
+	 * @param integer $answerType
253
+	 * @param string $answerComment
254
+	 * @param integer $answerCorrect
255
+	 * @param integer $id
256
+	 * @param integer $questionId
237 257
 	 * @return void
238 258
 	 */
239 259
 	public static function display_unique_or_multiple_answer(
@@ -324,6 +344,12 @@  discard block
 block discarded – undo
324 344
      * @param integer Exercise ID
325 345
      * @param integer Question ID
326 346
      * @param boolean Whether to show the answer comment or not
347
+     * @param integer $feedback_type
348
+     * @param integer $answerType
349
+     * @param string $answerComment
350
+     * @param integer $answerCorrect
351
+     * @param integer $id
352
+     * @param integer $questionId
327 353
      * @return void
328 354
      */
329 355
     public static function display_multiple_answer_true_false(
@@ -414,6 +440,12 @@  discard block
 block discarded – undo
414 440
      * @param integer Exercise ID
415 441
      * @param integer Question ID
416 442
      * @param boolean Whether to show the answer comment or not
443
+     * @param integer $feedback_type
444
+     * @param integer $answerType
445
+     * @param string $answerComment
446
+     * @param integer $answerCorrect
447
+     * @param integer $id
448
+     * @param integer $questionId
417 449
      * @return void
418 450
      */
419 451
     static function display_multiple_answer_combination_true_false(
Please login to merge, or discard this patch.
main/exercice/answer.class.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -187,6 +187,7 @@  discard block
 block discarded – undo
187 187
      * Reads answer information from the data base ordered by parameter
188 188
      * @param	string	Field we want to order by
189 189
      * @param	string	DESC or ASC
190
+     * @param string $field
190 191
      * @author 	Frederic Vauthier
191 192
      */
192 193
     public function readOrderedBy($field, $order='ASC')
@@ -308,6 +309,7 @@  discard block
 block discarded – undo
308 309
 	 * returns the question ID of the destination question
309 310
 	 *
310 311
 	 * @author Julio Montoya
312
+	 * @param integer $id
311 313
 	 * @return integer - the question ID
312 314
 	 */
313 315
 	public function selectDestination($id)
@@ -329,6 +331,7 @@  discard block
 block discarded – undo
329 331
 
330 332
 	/**
331 333
 	 * return array answer by id else return a bool
334
+	 * @param integer $auto_id
332 335
 	 */
333 336
 	public function selectAnswerByAutoId($auto_id)
334 337
 	{
@@ -467,6 +470,7 @@  discard block
 block discarded – undo
467 470
 	 *
468 471
 	 * @author Olivier Brouckaert
469 472
 	 * @param - integer $id - answer ID
473
+	 * @param integer $id
470 474
 	 * @return integer - answer weighting
471 475
 	 */
472 476
     public function selectWeighting($id)
@@ -491,6 +495,7 @@  discard block
 block discarded – undo
491 495
 	 *
492 496
 	 * @author	Olivier Brouckaert
493 497
 	 * @param	integer	Answer ID
498
+	 * @param integer $id
494 499
 	 * @return	integer	Answer position
495 500
 	 */
496 501
     public function selectHotspotCoordinates($id)
@@ -503,6 +508,7 @@  discard block
 block discarded – undo
503 508
 	 *
504 509
 	 * @author	Toon Keppens
505 510
 	 * @param	integer		Answer ID
511
+	 * @param integer $id
506 512
 	 * @return	integer		Answer position
507 513
 	 */
508 514
     public function selectHotspotType($id)
@@ -729,6 +735,7 @@  discard block
 block discarded – undo
729 735
 	 * @author Olivier Brouckaert
730 736
 	 * @param  int question id
731 737
      * @param  array destination course info (result of the function api_get_course_info() )
738
+     * @param string $newQuestionId
732 739
 	 */
733 740
     public function duplicate($newQuestionId, $course_info = null)
734 741
     {
Please login to merge, or discard this patch.