Test Setup Failed
Push — master ( 2809dd...f840ca )
by Angel Fernando Quiroz
554:33 queued 492:39
created
main/inc/lib/agenda.lib.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -554,13 +554,12 @@  discard block
 block discarded – undo
554 554
      * @param string $title
555 555
      * @param string $content
556 556
      * @param array $usersToSend
557
-     * @param int $editRepeatType
558 557
      * @param array $attachmentArray
559 558
      * @param string $attachmentComment
560 559
      * @param string $comment
561 560
      * @param string $color
562 561
      *
563
-     * @return bool
562
+     * @return null|false
564 563
      */
565 564
     public function editEvent(
566 565
         $id,
@@ -1292,6 +1291,7 @@  discard block
 block discarded – undo
1292 1291
      *
1293 1292
      * @param int $eventId
1294 1293
      * @param int $courseId
1294
+     * @param integer $sessionId
1295 1295
      * @paraù int $sessionId
1296 1296
      *
1297 1297
      * @return array
@@ -2284,6 +2284,7 @@  discard block
 block discarded – undo
2284 2284
      * @param array $fileUserUpload ($_FILES['user_upload'])
2285 2285
      * @param string comment about file
2286 2286
      * @param array $courseInfo
2287
+     * @param string $comment
2287 2288
      * @return string
2288 2289
      */
2289 2290
     public function addAttachment($eventId, $fileUserUpload, $comment, $courseInfo)
@@ -2403,6 +2404,7 @@  discard block
 block discarded – undo
2403 2404
      * Adds x weeks to a UNIX timestamp
2404 2405
      * @param   int     The timestamp
2405 2406
      * @param   int     The number of weeks to add
2407
+     * @param integer $timestamp
2406 2408
      * @return  int     The new timestamp
2407 2409
      */
2408 2410
     function addWeek($timestamp, $num = 1)
@@ -2414,6 +2416,7 @@  discard block
 block discarded – undo
2414 2416
      * Adds x months to a UNIX timestamp
2415 2417
      * @param   int     The timestamp
2416 2418
      * @param   int     The number of years to add
2419
+     * @param integer $timestamp
2417 2420
      * @return  int     The new timestamp
2418 2421
      */
2419 2422
     function addMonth($timestamp, $num = 1)
@@ -2432,6 +2435,7 @@  discard block
 block discarded – undo
2432 2435
      * Adds x years to a UNIX timestamp
2433 2436
      * @param   int     The timestamp
2434 2437
      * @param   int     The number of years to add
2438
+     * @param integer $timestamp
2435 2439
      * @return  int     The new timestamp
2436 2440
      */
2437 2441
     function addYear($timestamp, $num = 1)
@@ -2631,7 +2635,7 @@  discard block
 block discarded – undo
2631 2635
     /**
2632 2636
      * @param array $courseInfo
2633 2637
      * @param $file
2634
-     * @return array|bool|string
2638
+     * @return false|string
2635 2639
      */
2636 2640
     public function importEventFile($courseInfo, $file)
2637 2641
     {
@@ -2744,7 +2748,7 @@  discard block
 block discarded – undo
2744 2748
 
2745 2749
     /**
2746 2750
      * Parse filter turns USER:12 to ['users' => [12])] or G:1 ['groups' => [1]]
2747
-     * @param $filter
2751
+     * @param integer $filter
2748 2752
      * @return array
2749 2753
      */
2750 2754
     public function parseAgendaFilter($filter)
@@ -3259,6 +3263,7 @@  discard block
 block discarded – undo
3259 3263
      * @param	int		user ID of the user
3260 3264
      * @param	string	Optional start date in datetime format (if no start date is given, uses today)
3261 3265
      * @param	string	Optional end date in datetime format (if no date is given, uses one year from now)
3266
+     * @param integer $user_id
3262 3267
      * @return	array	Array of events ordered by start date, in
3263 3268
      * [0]('datestart','dateend','title'),[1]('datestart','dateend','title','link','coursetitle') format,
3264 3269
      * where datestart and dateend are in yyyyMMddhhmmss format.
Please login to merge, or discard this patch.
main/inc/lib/AnnouncementEmail.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      *
18 18
      * @param int|array $course
19
-     * @param int|array $annoucement
19
+     * @param integer $announcement
20 20
      *
21 21
      * @return AnnouncementEmail
22 22
      */
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @param string $key
52 52
      *
53
-     * @return array
53
+     * @return string|null
54 54
      */
55 55
     public function course($key = '')
56 56
     {
Please login to merge, or discard this patch.
main/inc/lib/AnnouncementManager.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     }
19 19
 
20 20
     /**
21
-     * @return array
21
+     * @return string[]
22 22
      */
23 23
     public static function get_tags()
24 24
     {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param string    $course_code
41 41
      * @param int       $session_id
42 42
      *
43
-     * @return mixed
43
+     * @return string
44 44
      */
45 45
     public static function parse_content($userId, $content, $course_code, $session_id = 0)
46 46
     {
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      * @param array	    uploaded file $_FILES
350 350
      * @param string    Comment describing the attachment
351 351
      * @param bool  $sendToUsersInSession
352
-     * @return int      false on failure, ID of the announcement on success
352
+     * @return false|string      false on failure, ID of the announcement on success
353 353
      */
354 354
     public static function add_announcement(
355 355
         $emailTitle,
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
      * @param $to_users
461 461
      * @param array $file
462 462
      * @param string $file_comment
463
-     * @return bool|int
463
+     * @return false|string
464 464
      */
465 465
     public static function add_group_announcement(
466 466
         $emailTitle,
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
 
700 700
     /**
701 701
      * @param int $insert_id
702
-     * @return bool
702
+     * @return false|null
703 703
      */
704 704
     public static function update_mail_sent($insert_id)
705 705
     {
@@ -719,6 +719,7 @@  discard block
 block discarded – undo
719 719
      * Gets all announcements from a user by course
720 720
      * @param	string course db
721 721
      * @param	int user id
722
+     * @param integer $user_id
722 723
      * @return	array html with the content and count of announcements or false otherwise
723 724
      */
724 725
     public static function get_all_annoucement_by_user_course($course_code, $user_id)
@@ -1184,6 +1185,7 @@  discard block
 block discarded – undo
1184 1185
      * has been sent to
1185 1186
      * @param    string  The tool (announcement, agenda, ...)
1186 1187
      * @param    int     ID of the element of the corresponding type
1188
+     * @param string $tool
1187 1189
      * @return   array   Array of users and groups to whom the element has been sent
1188 1190
      */
1189 1191
     public static function sent_to($tool, $id)
@@ -1308,6 +1310,8 @@  discard block
 block discarded – undo
1308 1310
      * @param int attach id
1309 1311
      * @param array uploaded file $_FILES
1310 1312
      * @param string file comment
1313
+     * @param integer $id_attach
1314
+     * @param string $file_comment
1311 1315
      * @return int
1312 1316
      */
1313 1317
     public static function edit_announcement_attachment_file($id_attach, $file, $file_comment)
Please login to merge, or discard this patch.
main/inc/lib/app_view.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * Constructor, init tool path for rendering
20 20
      * @param string  tool name (optional)
21
+     * @param string $template_path
21 22
      */
22 23
     public function __construct($toolname = '', $template_path=null)
23 24
     {
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
     /**
51 52
      * Set layout view sent from a controller
52 53
      * @param string layout view
54
+     * @param string $layout
53 55
      */
54 56
     public function set_layout( $layout )
55 57
     {
@@ -59,6 +61,7 @@  discard block
 block discarded – undo
59 61
     /**
60 62
      * Set template view sent from a controller
61 63
      * @param string template view
64
+     * @param string $template
62 65
      */
63 66
     public function set_template($template)
64 67
     {
Please login to merge, or discard this patch.
main/inc/lib/blog.lib.php 1 patch
Doc Comments   +7 added lines, -11 removed lines patch added patch discarded remove patch
@@ -96,9 +96,7 @@  discard block
 block discarded – undo
96 96
 	/**
97 97
 	 * Creates a new blog in the given course
98 98
 	 * @author Toon Keppens
99
-	 * @param Integer $course_id Id
100 99
 	 * @param String $title
101
-	 * @param Text $description
102 100
 	 */
103 101
 	public static function create_blog($title, $subtitle)
104 102
 	{
@@ -186,9 +184,7 @@  discard block
 block discarded – undo
186 184
 	/**
187 185
 	 * Update title and subtitle of a blog in the given course
188 186
 	 * @author Toon Keppens
189
-	 * @param Integer $course_id Id
190 187
 	 * @param String $title
191
-	 * @param Text $description
192 188
 	 */
193 189
 	public static function edit_blog($blog_id, $title, $subtitle)
194 190
 	{
@@ -714,7 +710,6 @@  discard block
 block discarded – undo
714 710
 	/**
715 711
 	 * Deletes an assigned task from a blog
716 712
 	 * @param Integer $blog_id
717
-	 * @param Integer $assignment_id
718 713
 	 */
719 714
 	public static function delete_assigned_task($blog_id, $task_id, $user_id)
720 715
 	{
@@ -1126,9 +1121,7 @@  discard block
 block discarded – undo
1126 1121
 	 *
1127 1122
 	 * @param String $type
1128 1123
 	 * @param Integer $blog_id
1129
-	 * @param Integer $item_id
1130
-	 *
1131
-	 *@return String
1124
+	 * @param integer $post_id
1132 1125
 	 */
1133 1126
 	public static function display_rating_form ($type, $blog_id, $post_id, $comment_id = NULL)
1134 1127
 	{
@@ -2113,7 +2106,7 @@  discard block
 block discarded – undo
2113 2106
 	 *
2114 2107
 	 * @param Integer $blog_id
2115 2108
 	 *
2116
-	 * @return Html Form with sortable table with users to unsubcribe from a blog.
2109
+	 * @return false|null Form with sortable table with users to unsubcribe from a blog.
2117 2110
 	 */
2118 2111
 	public static function display_form_user_unsubscribe ($blog_id)
2119 2112
 	{
@@ -2234,6 +2227,7 @@  discard block
 block discarded – undo
2234 2227
 	 * @author Toon Keppens
2235 2228
 	 *
2236 2229
 	 * @param Integer $blog_id
2230
+	 * @param integer $post_id
2237 2231
 	 */
2238 2232
 	public static function display_new_comment_form($blog_id, $post_id, $title)
2239 2233
 	{
@@ -2282,10 +2276,8 @@  discard block
 block discarded – undo
2282 2276
 	 * @author Patrick Cool
2283 2277
 	 * @author Toon Keppens
2284 2278
 	 *
2285
-	 * @param Array $blogitems an array containing all the blog items for the given month
2286 2279
 	 * @param Integer $month: the integer value of the month we are viewing
2287 2280
 	 * @param Integer $year: the 4-digit year indication e.g. 2005
2288
-	 * @param String $monthName: the language variable for the mont name
2289 2281
 	 *
2290 2282
 	 * @return html code
2291 2283
 	*/
@@ -2579,6 +2571,7 @@  discard block
 block discarded – undo
2579 2571
  * @param the blog's id
2580 2572
  * @param the post's id
2581 2573
  * @param the comment's id
2574
+ * @param integer $blog_id
2582 2575
  * @return array with the post info according the parameters
2583 2576
  * @author Julio Montoya Dokeos
2584 2577
  * @version avril 2008, dokeos 1.8.5
@@ -2620,6 +2613,9 @@  discard block
 block discarded – undo
2620 2613
  * @param the blog's id
2621 2614
  * @param the post's id
2622 2615
  * @param the comment's id
2616
+ * @param integer $blog_id
2617
+ * @param integer $post_id
2618
+ * @param integer $comment_id
2623 2619
  * @author Julio Montoya Dokeos
2624 2620
  * @version avril 2008, dokeos 1.8.5
2625 2621
  */
Please login to merge, or discard this patch.
main/inc/lib/browser/Browser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
     /**
160 160
      * Set the name of the browser
161
-     * @param $browser string The name of the Browser
161
+     * @param string $browser string The name of the Browser
162 162
      */
163 163
     public function setBrowser($browser)
164 164
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
     /**
268 268
      * Set the browser to be from AOL
269
-     * @param $isAol
269
+     * @param boolean $isAol
270 270
      */
271 271
     public function setAol($isAol)
272 272
     {
Please login to merge, or discard this patch.
main/inc/lib/career.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-     * @return array
87
+     * @return string[]
88 88
      */
89 89
     public function get_status_list()
90 90
     {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @todo the form should be auto generated
97 97
      * @param   string  $url
98 98
      * @param   string  $action add, edit
99
-     * @return  obj     form validator obj
99
+     * @return  FormValidator     form validator obj
100 100
      */
101 101
     public function return_form($url, $action)
102 102
     {
Please login to merge, or discard this patch.
main/inc/lib/chat.lib.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
     * Set user chat status
43 43
     * @param int 0 if disconnected, 1 if connected
44
+    * @param integer $status
44 45
      *
45 46
     * @return void
46 47
     */
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
     /**
165 166
      * Saves into session the fact that a chat window exists with the given user
166 167
      * @param int The ID of the user with whom the current user is chatting
168
+     * @param integer $user_id
167 169
      * @return void
168 170
      */
169 171
     public function save_window($user_id)
Please login to merge, or discard this patch.
main/inc/lib/course_description.lib.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * Get all data by description and session id,
96 96
      * first you must set session_id property with the object CourseDescription
97 97
      * @param    int  $description_type Description type
98
-     * @param   string $course_code Course code (optional)
98
+     * @param   string $courseId Course code (optional)
99 99
      * @param    int $session_id Session id (optional)
100 100
      * @return array    List of fields from the descriptions found of the given type
101 101
      */
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
     /**
361 361
      * Get description titles by default
362
-     * @return array
362
+     * @return string[]
363 363
      */
364 364
     public function get_default_description_title()
365 365
     {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
     /**
380 380
      * Get description titles editable by default
381
-     * @return array
381
+     * @return boolean[]
382 382
      */
383 383
     public function get_default_description_title_editable()
384 384
     {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
     /**
399 399
      * Get description icons by default
400
-     * @return array
400
+     * @return string[]
401 401
      */
402 402
     public function get_default_description_icon()
403 403
     {
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
     /**
419 419
      * Get questions by default for help
420
-     * @return array
420
+     * @return string[]
421 421
      */
422 422
     public function get_default_question()
423 423
     {
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
     /**
438 438
      * Get informations by default for help
439
-     * @return array
439
+     * @return string[]
440 440
      */
441 441
     public function get_default_information()
442 442
     {
Please login to merge, or discard this patch.