Completed
Push — 1.10.x ( a788c0...4b0069 )
by Angel Fernando Quiroz
44:46
created
main/inc/lib/exercise.lib.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1279,6 +1279,7 @@  discard block
 block discarded – undo
1279 1279
 
1280 1280
     /**
1281 1281
      * Validates the time control key
1282
+     * @param integer $exercise_id
1282 1283
      */
1283 1284
     public static function exercise_time_control_is_valid(
1284 1285
         $exercise_id,
@@ -1412,7 +1413,7 @@  discard block
 block discarded – undo
1412 1413
      * @param int $in_direction
1413 1414
      * @param string $in_hotpot_path
1414 1415
      * @param bool $in_get_count
1415
-     * @param null $where_condition
1416
+     * @param string $where_condition
1416 1417
      * @return array|int
1417 1418
      */
1418 1419
     public static function get_exam_results_hotpotatoes_data(
@@ -2213,7 +2214,7 @@  discard block
 block discarded – undo
2213 2214
     /**
2214 2215
      * Converts a numeric value in a percentage example 0.66666 to 66.67 %
2215 2216
      * @param $value
2216
-     * @return float Converted number
2217
+     * @return string Converted number
2217 2218
      */
2218 2219
     public static function convert_to_percentage($value)
2219 2220
     {
@@ -2229,7 +2230,7 @@  discard block
 block discarded – undo
2229 2230
      * @param   float $score
2230 2231
      * @param   float $weight
2231 2232
      * @deprecated seem not to be used
2232
-     * @return  float   the score rounded converted to the new range
2233
+     * @return  string|null   the score rounded converted to the new range
2233 2234
      */
2234 2235
     public static function convert_score($score, $weight)
2235 2236
     {
@@ -2780,6 +2781,7 @@  discard block
 block discarded – undo
2780 2781
      * @param    int        exercise id
2781 2782
      * @param    int    $courseId
2782 2783
      * @param    int        session id
2784
+     * @param integer $user_count
2783 2785
      * @return    float    Best average score
2784 2786
      */
2785 2787
     public static function get_best_average_score_by_exercise(
@@ -3219,8 +3221,9 @@  discard block
 block discarded – undo
3219 3221
     }
3220 3222
 
3221 3223
     /**
3222
-     * @param array $answer
3224
+     * @param string|null $answer
3223 3225
      * @param string $user_answer
3226
+     * @param string|null $current_answer
3224 3227
      * @return array
3225 3228
      */
3226 3229
     public static function check_fill_in_blanks($answer, $user_answer, $current_answer)
@@ -3848,7 +3851,7 @@  discard block
 block discarded – undo
3848 3851
 
3849 3852
     /**
3850 3853
      * @param int $countLetter
3851
-     * @return mixed
3854
+     * @return string
3852 3855
      */
3853 3856
     public static function detectInputAppropriateClass($countLetter)
3854 3857
     {
Please login to merge, or discard this patch.