Test Setup Failed
Push — master ( 3fbe34...23fdb2 )
by Angel Fernando Quiroz
153:24 queued 94:45
created
main/coursecopy/classes/Event.class.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,6 @@
 block discarded – undo
50 50
      * @param int $id
51 51
      * @param string $title
52 52
      * @param string $content
53
-     * @param string $date
54
-     * @param string $hour
55
-     * @param int $duration
56 53
      */
57 54
     public function __construct(
58 55
         $id,
Please login to merge, or discard this patch.
main/coursecopy/classes/QuizQuestion.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@
 block discarded – undo
115 115
         $this->answers[] = $answer;
116 116
     }
117 117
 
118
+    /**
119
+     * @param QuizQuestionOption $option_obj
120
+     */
118 121
     public function add_option($option_obj)
119 122
     {
120 123
         $this->question_options[$option_obj->obj->id] = $option_obj;
Please login to merge, or discard this patch.
main/coursecopy/classes/Resource.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 
129 129
     /**
130 130
      * Resturns the type of this resource
131
-     * @return constant The type.
131
+     * @return integer The type.
132 132
      */
133 133
     public function get_type()
134 134
     {
Please login to merge, or discard this patch.
main/coursecopy/copy_course_session_selected.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
 
66 66
 /* FUNCTIONS */
67 67
 
68
+/**
69
+ * @param string $name
70
+ */
68 71
 function make_select_session_list($name, $sessions, $attr = array())
69 72
 {
70 73
 
Please login to merge, or discard this patch.
main/cron/create_course_sessions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,7 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Returns a quarter from a month
52 52
  * @param   string  The month (digit), with or without leading 0
53
+ * @param string $month
53 54
  * @return  int The yearly quarter (1, 2, 3 or 4) in which this month lies
54 55
  */
55 56
 function getQuarter($month)
@@ -96,6 +97,7 @@  discard block
 block discarded – undo
96 97
 /**
97 98
  * Returns the first month of the quarter
98 99
  * @param   int Quarter
100
+ * @param integer $quarter
99 101
  * @return  string Number of the month, with leading 0
100 102
  */
101 103
 function getQuarterFirstMonth($quarter)
@@ -116,6 +118,7 @@  discard block
 block discarded – undo
116 118
 /**
117 119
  * Get the quarter in Roman letters
118 120
  * @param   int Quarter
121
+ * @param integer $quarter
119 122
  * @return  string  Roman letters
120 123
  */
121 124
 function getQuarterRoman($quarter)
Please login to merge, or discard this patch.
main/cron/import_csv.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public $conditions;
49 49
 
50 50
     /**
51
-     * @param Logger $logger
51
+     * @param Monolog\Logger $logger
52 52
      * @param array
53 53
      */
54 54
     public function __construct($logger, $conditions)
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-     * @return mixed
69
+     * @return boolean
70 70
      */
71 71
     public function getDumpValues()
72 72
     {
Please login to merge, or discard this patch.
main/dropbox/dropbox_class.inc.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 	 * @param string $author
267 267
 	 * @param string $filename
268 268
 	 * @param int $filesize
269
-	 * @param array $recipient_ids
269
+	 * @param unknown_type|null $recipient_ids
270 270
 	 */
271 271
 	public function _createNewSentWork($uploader_id, $title, $description, $author, $filename, $filesize, $recipient_ids)
272 272
     {
@@ -584,6 +584,7 @@  discard block
 block discarded – undo
584 584
 
585 585
 	/**
586 586
 	 * Deletes all the received categories and work of this person
587
+	 * @param integer $id
587 588
 	 */
588 589
 	function deleteReceivedWorkFolder($id)
589 590
     {
Please login to merge, or discard this patch.
main/exercice/answer.class.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -186,6 +186,7 @@  discard block
 block discarded – undo
186 186
      * Reads answer information from the data base ordered by parameter
187 187
      * @param	string	Field we want to order by
188 188
      * @param	string	DESC or ASC
189
+     * @param string $field
189 190
      * @author 	Frederic Vauthier
190 191
      */
191 192
     public function readOrderedBy($field, $order='ASC')
@@ -300,6 +301,7 @@  discard block
 block discarded – undo
300 301
 	 * returns the question ID of the destination question
301 302
 	 *
302 303
 	 * @author Julio Montoya
304
+	 * @param integer $id
303 305
 	 * @return integer - the question ID
304 306
 	 */
305 307
 	public function selectDestination($id)
@@ -321,6 +323,7 @@  discard block
 block discarded – undo
321 323
 
322 324
 	/**
323 325
 	 * return array answer by id else return a bool
326
+	 * @param integer $auto_id
324 327
 	 */
325 328
 	public function selectAnswerByAutoId($auto_id)
326 329
 	{
@@ -435,6 +438,7 @@  discard block
 block discarded – undo
435 438
 	 *
436 439
 	 * @author Olivier Brouckaert
437 440
 	 * @param - integer $id - answer ID
441
+	 * @param integer $id
438 442
 	 * @return integer - 0 if bad answer, not 0 if good answer
439 443
 	 */
440 444
     public function isCorrect($id)
@@ -447,6 +451,7 @@  discard block
 block discarded – undo
447 451
 	 *
448 452
 	 * @author Olivier Brouckaert
449 453
 	 * @param - integer $id - answer ID
454
+	 * @param integer $id
450 455
 	 * @return string - answer comment
451 456
 	 */
452 457
     public function selectComment($id)
@@ -459,6 +464,7 @@  discard block
 block discarded – undo
459 464
 	 *
460 465
 	 * @author Olivier Brouckaert
461 466
 	 * @param - integer $id - answer ID
467
+	 * @param integer $id
462 468
 	 * @return integer - answer weighting
463 469
 	 */
464 470
     public function selectWeighting($id)
@@ -483,6 +489,7 @@  discard block
 block discarded – undo
483 489
 	 *
484 490
 	 * @author	Olivier Brouckaert
485 491
 	 * @param	integer	Answer ID
492
+	 * @param integer $id
486 493
 	 * @return	integer	Answer position
487 494
 	 */
488 495
     public function selectHotspotCoordinates($id)
@@ -495,6 +502,7 @@  discard block
 block discarded – undo
495 502
 	 *
496 503
 	 * @author	Toon Keppens
497 504
 	 * @param	integer		Answer ID
505
+	 * @param integer $id
498 506
 	 * @return	integer		Answer position
499 507
 	 */
500 508
     public function selectHotspotType($id)
@@ -550,6 +558,7 @@  discard block
 block discarded – undo
550 558
      * @param string $destination
551 559
      * @param string $hotspot_coordinates
552 560
      * @param string $hotspot_type
561
+     * @param integer $autoId
553 562
      */
554 563
     public function updateAnswers(
555 564
         $autoId,
@@ -720,6 +729,7 @@  discard block
 block discarded – undo
720 729
 	 * @author Olivier Brouckaert
721 730
 	 * @param  int question id
722 731
      * @param  array destination course info (result of the function api_get_course_info() )
732
+     * @param string $newQuestionId
723 733
 	 */
724 734
     public function duplicate($newQuestionId, $course_info = null)
725 735
     {
Please login to merge, or discard this patch.
main/exercice/exercise.class.php 1 patch
Doc Comments   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     }
284 284
 
285 285
     /**
286
-     * @return int
286
+     * @return string
287 287
      */
288 288
     public function selectPassPercentage()
289 289
     {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
      * tells if questions are selected randomly, and if so returns the draws
379 379
      *
380 380
      * @author Olivier Brouckaert
381
-     * @return integer - 0 if not random, otherwise the draws
381
+     * @return boolean - 0 if not random, otherwise the draws
382 382
      */
383 383
     public function isRandom()
384 384
     {
@@ -1856,7 +1856,7 @@  discard block
 block discarded – undo
1856 1856
      * @param int  int lp id
1857 1857
      * @param int  int lp item id
1858 1858
      * @param int  int lp item_view id
1859
-     * @param float $weight
1859
+     * @param integer $weight
1860 1860
      * @param array question list
1861 1861
      */
1862 1862
     public function save_stat_track_exercise_info(
@@ -4121,6 +4121,7 @@  discard block
 block discarded – undo
4121 4121
     /**
4122 4122
      * Sends a notification when a user ends an examn
4123 4123
      *
4124
+     * @param integer $exe_id
4124 4125
      */
4125 4126
     public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id)
4126 4127
     {
@@ -4201,6 +4202,7 @@  discard block
 block discarded – undo
4201 4202
     /**
4202 4203
      * Sends a notification when a user ends an examn
4203 4204
      *
4205
+     * @param integer $exe_id
4204 4206
      */
4205 4207
     function send_notification_for_open_questions($question_list_answers, $origin, $exe_id)
4206 4208
     {
@@ -4298,6 +4300,9 @@  discard block
 block discarded – undo
4298 4300
         }
4299 4301
     }
4300 4302
 
4303
+    /**
4304
+     * @param integer $exe_id
4305
+     */
4301 4306
     function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id)
4302 4307
     {
4303 4308
         if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) {
@@ -4391,7 +4396,7 @@  discard block
 block discarded – undo
4391 4396
 
4392 4397
     /**
4393 4398
      * @param array $user_data result of api_get_user_info()
4394
-     * @param null $start_date
4399
+     * @param string $start_date
4395 4400
      * @param null $duration
4396 4401
      * @param string $ip Optional. The user IP
4397 4402
      * @return string
@@ -4449,7 +4454,7 @@  discard block
 block discarded – undo
4449 4454
      * @param int     Maximum number of attempts (0 if no limit)
4450 4455
      * @param int     Feedback type
4451 4456
      * @todo this was function was added due the import exercise via CSV
4452
-     * @return    int New exercise ID
4457
+     * @return    string New exercise ID
4453 4458
      */
4454 4459
     public function createExercise(
4455 4460
         $title,
Please login to merge, or discard this patch.