Completed
Pull Request — 1.11.x (#1359)
by José
193:39 queued 155:02
created
main/inc/lib/formvalidator/FormValidator.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -954,7 +954,7 @@
 block discarded – undo
954 954
     /**
955 955
      * This function has been created for avoiding changes directly within QuickForm class.
956 956
      * When we use it, the element is threated as 'required' to be dealt during validation.
957
-     * @param array $element The array of elements
957
+     * @param array $elements The array of elements
958 958
      * @param string $message The message displayed
959 959
      */
960 960
     public function add_multiple_required_rule($elements, $message)
Please login to merge, or discard this patch.
main/wiki/wiki.inc.php 1 patch
Doc Comments   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      * This function saves a change in a wiki page
259 259
      * @author Patrick Cool <[email protected]>, Ghent University
260 260
      * @param array $values
261
-     * @return language string saying that the changes are stored
261
+     * @return string string saying that the changes are stored
262 262
      **/
263 263
     public function save_wiki($values)
264 264
     {
@@ -1196,6 +1196,7 @@  discard block
 block discarded – undo
1196 1196
      * Checks if this navigation tab has to be set to active
1197 1197
      * @author Patrick Cool <[email protected]>, Ghent University
1198 1198
      *
1199
+     * @param string $paramwk
1199 1200
      * @return string html code
1200 1201
      */
1201 1202
     public function is_active_navigation_tab($paramwk)
@@ -1711,6 +1712,7 @@  discard block
 block discarded – undo
1711 1712
 
1712 1713
     /**
1713 1714
      * Sends pending e-mails
1715
+     * @param string $type
1714 1716
      */
1715 1717
     public function check_emailcue($id_or_ref, $type, $lastime='', $lastuser='')
1716 1718
     {
@@ -2011,6 +2013,7 @@  discard block
 block discarded – undo
2011 2013
 
2012 2014
     /**
2013 2015
      * Exports the wiki page to PDF
2016
+     * @param string $course_code
2014 2017
      */
2015 2018
     public function export_to_pdf($id, $course_code)
2016 2019
     {
@@ -2478,6 +2481,7 @@  discard block
 block discarded – undo
2478 2481
     /**
2479 2482
      * Draws an HTML form select with the given options
2480 2483
      *
2484
+     * @param string $name
2481 2485
      */
2482 2486
     public function make_select($name,$values,$checked='')
2483 2487
     {
@@ -2514,7 +2518,7 @@  discard block
 block discarded – undo
2514 2518
     /**
2515 2519
      * Get wiki information
2516 2520
      * @param   int|bool     wiki id
2517
-     * @return  array   wiki data
2521
+     * @return  string   wiki data
2518 2522
      */
2519 2523
     public function getWikiDataFromDb($id)
2520 2524
     {
@@ -2561,6 +2565,7 @@  discard block
 block discarded – undo
2561 2565
      * Get wiki information
2562 2566
      * @param   string     wiki id
2563 2567
      * @param int $courseId
2568
+     * @param string $title
2564 2569
      * @return  array   wiki data
2565 2570
      */
2566 2571
     public function getPageByTitle($title, $courseId = null)
@@ -2593,6 +2598,8 @@  discard block
 block discarded – undo
2593 2598
      * @param int $courseId
2594 2599
      * @param string
2595 2600
      * @param string
2601
+     * @param string $groupfilter
2602
+     * @param string $condition_session
2596 2603
      * @return bool
2597 2604
      */
2598 2605
     public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null)
@@ -3644,6 +3651,7 @@  discard block
 block discarded – undo
3644 3651
 
3645 3652
     /**
3646 3653
      * Show all pages
3654
+     * @param string $action
3647 3655
      */
3648 3656
     public function allPages($action)
3649 3657
     {
@@ -4200,7 +4208,7 @@  discard block
 block discarded – undo
4200 4208
 
4201 4209
     /**
4202 4210
      * Restore page
4203
-     * @return bool
4211
+     * @return false|null
4204 4212
      */
4205 4213
     public function restorePage()
4206 4214
     {
@@ -4302,7 +4310,7 @@  discard block
 block discarded – undo
4302 4310
     }
4303 4311
 
4304 4312
     /**
4305
-     * @param int|bool $wikiId
4313
+     * @param false|string $wikiId
4306 4314
      */
4307 4315
     public function setWikiData($wikiId)
4308 4316
     {
Please login to merge, or discard this patch.
main/inc/lib/CourseChatUtils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1415,7 +1415,7 @@  discard block
 block discarded – undo
1415 1415
 
1416 1416
     /**
1417 1417
      * Get the emoji list to include in chat
1418
-     * @return array
1418
+     * @return string[]
1419 1419
      */
1420 1420
     public static function getEmojisToInclude()
1421 1421
     {
@@ -1738,7 +1738,7 @@  discard block
 block discarded – undo
1738 1738
 
1739 1739
     /**
1740 1740
      * Get the number of users connected in chat
1741
-     * @return mixed
1741
+     * @return integer
1742 1742
      */
1743 1743
     public function countUsersOnline()
1744 1744
     {
Please login to merge, or discard this patch.
main/gradebook/lib/GradebookUtils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -732,7 +732,7 @@
 block discarded – undo
732 732
     }
733 733
 
734 734
     /**
735
-     * @param null $course_code
735
+     * @param string $course_code
736 736
      * @param int $gradebook_model_id
737 737
      * @return mixed
738 738
      */
Please login to merge, or discard this patch.
main/inc/lib/glossary.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @param array  $values  Array of title + description (name => $title, description => $comment)
97 97
      *
98
-     * @return mixed   Term id on success, false on failure
98
+     * @return false|string   Term id on success, false on failure
99 99
      *
100 100
      */
101 101
     public static function save_glossary($values, $showMessage = true)
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 
449 449
     /**
450 450
      * Display the glossary terms in a list
451
-     * @return bool true
451
+     * @return string true
452 452
      */
453 453
     public static function displayGlossaryList()
454 454
     {
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
      * Update action icons column
586 586
      *
587 587
      * @param integer $glossary_id
588
-     * @param array   $url_params Parameters to use to affect links
588
+     * @param string   $url_params Parameters to use to affect links
589 589
      * @param array   $row The line of results from a query on the glossary table
590 590
      *
591 591
      * @return string HTML string for the action icons columns
Please login to merge, or discard this patch.
main/inc/lib/thematic.lib.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -242,6 +242,8 @@  discard block
 block discarded – undo
242 242
     /**
243 243
      * get thematic list
244 244
      * @param	int		Thematic id (optional), get list by id
245
+     * @param integer $thematic_id
246
+     * @param integer $session_id
245 247
      * @return	array	Thematic data
246 248
      */
247 249
     public static function get_thematic_list(
@@ -798,6 +800,7 @@  discard block
 block discarded – undo
798 800
     /**
799 801
      * delete  thematic advance
800 802
      * @param	int		Thematic advance id
803
+     * @param integer $thematic_advance_id
801 804
      * @return	int		Affected rows
802 805
      */
803 806
     public function thematic_advance_destroy($thematic_advance_id)
@@ -1114,6 +1117,7 @@  discard block
 block discarded – undo
1114 1117
     /**
1115 1118
      * update done thematic advances from thematic details interface
1116 1119
      * @param 	int		Thematic id
1120
+     * @param integer $thematic_advance_id
1117 1121
      * @return	int		Affected rows
1118 1122
      */
1119 1123
     public function update_done_thematic_advances($thematic_advance_id)
@@ -1296,6 +1300,7 @@  discard block
 block discarded – undo
1296 1300
      * Get total average of thematic advances
1297 1301
      * @param	string	Course code (optional)
1298 1302
      * @param	int		Session id	(optional)
1303
+     * @param integer $session_id
1299 1304
      * @return 	float	Average of thematic advances
1300 1305
      */
1301 1306
     public function get_total_average_of_thematic_advances($course_code = null, $session_id = null)
@@ -1403,6 +1408,7 @@  discard block
 block discarded – undo
1403 1408
      * @param	string	Content
1404 1409
      * @param	string	Date and time
1405 1410
      * @param	int		Duration in hours
1411
+     * @param integer $id
1406 1412
      * @return void
1407 1413
      */
1408 1414
     public function set_thematic_advance_attributes(
@@ -1433,7 +1439,7 @@  discard block
 block discarded – undo
1433 1439
 
1434 1440
     /**
1435 1441
      * get thematic id
1436
-     * @return void
1442
+     * @return integer
1437 1443
      */
1438 1444
     public function get_thematic_id()
1439 1445
     {
@@ -1442,7 +1448,7 @@  discard block
 block discarded – undo
1442 1448
 
1443 1449
     /**
1444 1450
      * Get thematic plan titles by default
1445
-     * @return array
1451
+     * @return string[]
1446 1452
      */
1447 1453
     public function get_default_thematic_plan_title()
1448 1454
     {
@@ -1459,7 +1465,7 @@  discard block
 block discarded – undo
1459 1465
 
1460 1466
     /**
1461 1467
      * Get thematic plan icons by default
1462
-     * @return array
1468
+     * @return string[]
1463 1469
      */
1464 1470
     public function get_default_thematic_plan_icon()
1465 1471
     {
@@ -1476,7 +1482,7 @@  discard block
 block discarded – undo
1476 1482
 
1477 1483
     /**
1478 1484
      * Get questions by default for help
1479
-     * @return array
1485
+     * @return string[]
1480 1486
      */
1481 1487
     public function get_default_question()
1482 1488
     {
Please login to merge, or discard this patch.
main/inc/lib/extra_field.lib.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-     * @return array
143
+     * @return string[]
144 144
      */
145 145
     public static function getValidExtraFieldTypes()
146 146
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     /**
219 219
      * @param array $conditions
220
-     * @param null  $order_field_options_by
220
+     * @param string  $order_field_options_by
221 221
      *
222 222
      * @return array
223 223
      */
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     /**
376 376
      * @param string $handler
377 377
      *
378
-     * @return array
378
+     * @return string[]
379 379
      */
380 380
     public static function get_extra_fields_by_handler($handler)
381 381
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
     }
575 575
 
576 576
     /**
577
-     * @return array
577
+     * @return string[]
578 578
      */
579 579
     public function get_field_types()
580 580
     {
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
     /**
585 585
      * @param int $id
586 586
      *
587
-     * @return null
587
+     * @return string|null
588 588
      */
589 589
     public function get_field_type_by_id($id)
590 590
     {
@@ -1826,7 +1826,7 @@  discard block
 block discarded – undo
1826 1826
     }
1827 1827
 
1828 1828
     /**
1829
-     * @return array
1829
+     * @return string[]
1830 1830
      */
1831 1831
     public function getJqgridColumnNames()
1832 1832
     {
@@ -2086,7 +2086,7 @@  discard block
 block discarded – undo
2086 2086
     }
2087 2087
 
2088 2088
     /**
2089
-     * @param array $columns
2089
+     * @param string[] $columns
2090 2090
      * @param array  $column_model
2091 2091
      * @param array  $extraFields
2092 2092
      * @return array
Please login to merge, or discard this patch.
main/inc/lib/course.lib.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
      * @param  string $courseCode the course code
786 786
      * @param  int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible)
787 787
      *
788
-     * @return boolean true if added succesfully, false otherwise.
788
+     * @return boolean|string true if added succesfully, false otherwise.
789 789
      */
790 790
     public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1)
791 791
     {
@@ -2374,7 +2374,7 @@  discard block
 block discarded – undo
2374 2374
 
2375 2375
     /**
2376 2376
      * Creates a file called mysql_dump.sql in the course folder
2377
-     * @param $course_code The code of the course
2377
+     * @param string $course_code The code of the course
2378 2378
      * @todo Implementation for single database
2379 2379
      */
2380 2380
     public static function create_database_dump($course_code)
@@ -3174,6 +3174,7 @@  discard block
 block discarded – undo
3174 3174
      * @param int $limit
3175 3175
      * @param string $column
3176 3176
      * @param string $direction
3177
+     * @param integer $status
3177 3178
      * @return array    courses
3178 3179
      */
3179 3180
     public static function get_courses_followed_by_drh(
@@ -3777,6 +3778,7 @@  discard block
 block discarded – undo
3777 3778
      *  class userportal-course-item.
3778 3779
      * @param int      User category id
3779 3780
      * @param bool      Whether to show the document quick-loader or not
3781
+     * @param integer $user_category_id
3780 3782
      * @return string
3781 3783
      */
3782 3784
     public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false)
@@ -4979,7 +4981,7 @@  discard block
 block discarded – undo
4979 4981
     /**
4980 4982
      * Returns the SQL conditions to filter course only visible by the user in the catalogue
4981 4983
      *
4982
-     * @param $courseTableAlias Alias of the course table
4984
+     * @param string $courseTableAlias Alias of the course table
4983 4985
      * @return string SQL conditions
4984 4986
      */
4985 4987
     public static function getCourseVisibilitySQLCondition($courseTableAlias) {
Please login to merge, or discard this patch.
app/check.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
     echo PHP_EOL;
97 97
 }
98 98
 
99
+/**
100
+ * @param string $message
101
+ */
99 102
 function echo_style($style, $message)
100 103
 {
101 104
     // ANSI color codes
Please login to merge, or discard this patch.