Passed
Push — 1.10.x ( f1db27...9c952d )
by Angel Fernando Quiroz
83:55 queued 35:13
created
main/inc/lib/access_url_edit_courses_to_url_functions.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * a given string
23 23
      * @param string String to search for
24 24
      * @param int Deprecated param
25
-     * @return string A formatted, xajax answer block
25
+     * @return xajaxResponse A formatted, xajax answer block
26 26
      * @assert () === false
27 27
      */
28 28
     function search_courses($needle, $id)
Please login to merge, or discard this patch.
main/inc/lib/access_url_edit_users_to_url_functions.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * search string
24 24
      * @param string Search string
25 25
      * @param int Deprecated param
26
-     * @return string Xajax response block
26
+     * @return xajaxResponse Xajax response block
27 27
      * @assert () === false
28 28
      */
29 29
     function search_users($needle, $id)
Please login to merge, or discard this patch.
main/inc/lib/add_course.lib.inc.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
     /**
191 191
      * Gets an array with all the course tables (deprecated?)
192
-     * @return array
192
+     * @return string[]
193 193
      * @assert (null) !== null
194 194
      */
195 195
     public static function get_course_tables()
@@ -310,6 +310,8 @@  discard block
 block discarded – undo
310 310
      * @param string Complete path to directory we want to list
311 311
      * @param array A list of files to which we want to add the files found
312 312
      * @param string Type of base directory from which we want to recover the files
313
+     * @param string $path
314
+     * @param string $media
313 315
      * @return array
314 316
      * @assert (null,null,null) === false
315 317
      * @assert ('abc',array(),'') === array()
@@ -371,6 +373,7 @@  discard block
 block discarded – undo
371 373
      * Sorts pictures by type (used?)
372 374
      * @param array List of files (sthg like array(0=>array('png'=>1)))
373 375
      * @param string File type
376
+     * @param string $type
374 377
      * @return array The received array without files not matching type
375 378
      * @assert (array(),null) === array()
376 379
      */
Please login to merge, or discard this patch.
main/inc/lib/add_courses_to_session_functions.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 	 * Searches a course, given a search string and a type of search box
11 11
 	 * @param string $needle Search string
12 12
 	 * @param string $type Type of search box ('single' or anything else)
13
-	 * @return string XajaxResponse
13
+	 * @return xajaxResponse XajaxResponse
14 14
 	 * @assert ('abc', 'single') !== null
15 15
 	 * @assert ('abc', 'multiple') !== null
16 16
 	 */
Please login to merge, or discard this patch.
main/inc/lib/add_many_session_to_category_functions.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * Search for a session based on a given search string
18 18
      * @param string A search string
19 19
      * @param string A search box type (single or anything else)
20
-     * @return string XajaxResponse
20
+     * @return xajaxResponse XajaxResponse
21 21
      * @assert () !== ''
22 22
      * @assert ('abc','single') !== ''
23 23
      */
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/banner.lib.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -147,6 +147,9 @@  discard block
 block discarded – undo
147 147
     return $customTabs;
148 148
 }
149 149
 
150
+/**
151
+ * @param string $theme
152
+ */
150 153
 function return_logo($theme)
151 154
 {
152 155
     $_course = api_get_course_info();
@@ -497,6 +500,9 @@  discard block
 block discarded – undo
497 500
     return $menu;
498 501
 }
499 502
 
503
+/**
504
+ * @param string $nameTools
505
+ */
500 506
 function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
501 507
 {
502 508
     $session_id = api_get_session_id();
Please login to merge, or discard this patch.