Passed
Push — 1.10.x ( f75118...849f97 )
by Angel Fernando Quiroz
52:16
created
main/inc/lib/userportal.lib.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -642,6 +642,7 @@  discard block
 block discarded – undo
642 642
     * retrieves all the courses that the user has already subscribed to
643 643
     * @author Patrick Cool <[email protected]>, Ghent University, Belgium
644 644
     * @param int $user_id: the id of the user
645
+    * @param integer $user_id
645 646
     * @return array an array containing all the information of the courses of the given user
646 647
     */
647 648
     public function get_courses_of_user($user_id)
@@ -692,6 +693,11 @@  discard block
 block discarded – undo
692 693
 
693 694
     /**
694 695
      * @todo use the template system
696
+     * @param string|null $title
697
+     * @param string $content
698
+     * @param string $id
699
+     * @param string $idAccordion
700
+     * @param string $idCollpase
695 701
      */
696 702
     function show_right_block($title, $content, $id = null, $params = null, $idAccordion = null, $idCollpase = null)
697 703
     {
@@ -909,7 +915,7 @@  discard block
 block discarded – undo
909 915
     }
910 916
 
911 917
     /**
912
-     * @return null|string
918
+     * @return string
913 919
      */
914 920
     public function return_course_block()
915 921
     {
@@ -1558,8 +1564,8 @@  discard block
 block discarded – undo
1558 1564
 
1559 1565
     /**
1560 1566
      * Return HTML code for personal user course category
1561
-     * @param $id
1562
-     * @param $title
1567
+     * @param integer $id
1568
+     * @param string $title
1563 1569
      * @return string
1564 1570
      */
1565 1571
     private static function getHtmlForUserCategory($id, $title)
@@ -1580,7 +1586,7 @@  discard block
 block discarded – undo
1580 1586
     /**
1581 1587
      * return HTML code for course display in session view
1582 1588
      * @param array $courseInfo
1583
-     * @param $userCategoryId
1589
+     * @param integer $userCategoryId
1584 1590
      * @param bool $displayButton
1585 1591
      * @param $loadDirs
1586 1592
      * @return string
Please login to merge, or discard this patch.
main/inc/lib/VideoChat.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * Create a video chat
44 44
      * @param int $fromUser The sender user
45 45
      * @param int $toUser The receiver user
46
-     * @return int The created video chat id. Otherwise return false
46
+     * @return false|string The created video chat id. Otherwise return false
47 47
      */
48 48
     public static function createRoom($fromUser, $toUser)
49 49
     {
Please login to merge, or discard this patch.
main/inc/lib/xajax/xajax.inc.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 	 * Returns the current request mode (XAJAX_GET or XAJAX_POST), or -1 if
501 501
 	 * there is none.
502 502
 	 *
503
-	 * @return mixed
503
+	 * @return integer
504 504
 	 */
505 505
 	function getRequestMode()
506 506
 	{
@@ -1018,6 +1018,7 @@  discard block
 block discarded – undo
1018 1018
 	 *
1019 1019
 	 * @param string the root tag of the XML
1020 1020
 	 * @param string XML to convert
1021
+	 * @param string $rootTag
1021 1022
 	 * @access private
1022 1023
 	 * @return array
1023 1024
 	 */
Please login to merge, or discard this patch.
main/inc/lib/xajax/xajaxCompress.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@
 block discarded – undo
39 39
  * (used internally)
40 40
  *
41 41
  * @param string contains the Javascript code to compress
42
+ * @param string $sJS
42 43
  */
43 44
 function xajaxCompressJavascript($sJS)
44 45
 {
Please login to merge, or discard this patch.
main/inc/lib/xajax/xajaxResponse.inc.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,6 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * @param string  contains the character encoding string to use
98 98
 	 * @param boolean lets you set if you want special characters in the output
99 99
 	 *                converted to HTML entities
100
+	 * @param string $sEncoding
100 101
 	 *
101 102
 	 */
102 103
 	function xajaxResponse($sEncoding=XAJAX_DEFAULT_CHAR_ENCODING, $bOutputEntities=false)
@@ -223,6 +224,8 @@  discard block
 block discarded – undo
223 224
 	 * @param string contains the id of an HTML element
224 225
 	 * @param string the part of the element you wish to clear ("innerHTML",
225 226
 	 *               "value", etc.)
227
+	 * @param string $sTarget
228
+	 * @param string $sAttribute
226 229
 	 */
227 230
 	function addClear($sTarget,$sAttribute)
228 231
 	{
@@ -279,6 +282,7 @@  discard block
 block discarded – undo
279 282
 	 * <i>Usage:</i> <kbd>$objResponse->addScript("var x = prompt('get some text');");</kbd>
280 283
 	 *
281 284
 	 * @param string contains Javascript code to be executed
285
+	 * @param string $sJS
282 286
 	 */
283 287
 	function addScript($sJS)
284 288
 	{
@@ -290,8 +294,6 @@  discard block
 block discarded – undo
290 294
 	 *
291 295
 	 * <i>Usage:</i> <kbd>$objResponse->addScriptCall("myJSFunction", "arg 1", "arg 2", 12345);</kbd>
292 296
 	 *
293
-	 * @param string $sFunc the name of a Javascript function
294
-	 * @param mixed $args,... optional arguments to pass to the Javascript function
295 297
 	 */
296 298
 	function addScriptCall() {
297 299
 		$arguments = func_get_args();
Please login to merge, or discard this patch.
main/inc/lib/zombie/zombie_report.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -121,6 +121,9 @@
 block discarded – undo
121 121
         return $form->isSubmitted() == false || $form->validate();
122 122
     }
123 123
 
124
+    /**
125
+     * @param string $format
126
+     */
124 127
     function get_ceiling($format = null)
125 128
     {
126 129
         $result = Request::get('ceiling');
Please login to merge, or discard this patch.
main/install/install.lib.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
  * This function return the value of a php.ini setting if not "" or if exists,
98 98
  * otherwise return false
99 99
  * @param   string  $phpSetting The name of a PHP setting
100
- * @return  mixed   The value of the setting, or false if not found
100
+ * @return  string|false   The value of the setting, or false if not found
101 101
  */
102 102
 function checkPhpSettingExists($phpSetting)
103 103
 {
@@ -1268,6 +1268,10 @@  discard block
 block discarded – undo
1268 1268
  * @param   string  Extra notice (to show on the right side)
1269 1269
  * @param   boolean Whether to display in update mode
1270 1270
  * @param   string  Additional attribute for the <tr> element
1271
+ * @param string $installType
1272
+ * @param string $parameterName
1273
+ * @param string $formFieldName
1274
+ * @param string $extra_notice
1271 1275
  * @return  void    Direct output
1272 1276
  */
1273 1277
 function displayDatabaseParameter(
@@ -1481,6 +1485,11 @@  discard block
 block discarded – undo
1481 1485
 
1482 1486
     <?php
1483 1487
 }
1488
+/**
1489
+ * @param string $content
1490
+ * @param string $title
1491
+ * @param string $id
1492
+ */
1484 1493
 function panel($content = null, $title = null, $id = null, $style = null) {
1485 1494
     $html = '';
1486 1495
     if (empty($style)) {
@@ -1837,8 +1846,8 @@  discard block
 block discarded – undo
1837 1846
 }
1838 1847
 
1839 1848
 /**
1840
- * @param $current_value
1841
- * @param $wanted_value
1849
+ * @param string $current_value
1850
+ * @param string $wanted_value
1842 1851
  * @return string
1843 1852
  */
1844 1853
 function compare_setting_values($current_value, $wanted_value)
@@ -1855,8 +1864,8 @@  discard block
 block discarded – undo
1855 1864
 }
1856 1865
 
1857 1866
 /**
1858
- * @param $course_dir
1859
- * @param $course_attempt_name
1867
+ * @param string $course_dir
1868
+ * @param string $course_attempt_name
1860 1869
  * @param string $file
1861 1870
  * @return bool
1862 1871
  */
Please login to merge, or discard this patch.
main/newscorm/aicc.class.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * Import the aicc object (as a result from the parse_config_files function) into the database structure
218 218
      * @param	string	$course_code
219
-     * @return	bool	Returns -1 on error
219
+     * @return	false|null	Returns -1 on error
220 220
      */
221 221
     public function import_aicc($course_code)
222 222
     {
@@ -780,7 +780,8 @@  discard block
 block discarded – undo
780 780
      * Static function to parse AICC ini files.
781 781
      * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()).
782 782
      * @param	string	File path
783
-     * @return	array	Structured array
783
+     * @param string $f
784
+     * @return	string	Structured array
784 785
      */
785 786
     function parse_ini_file_quotes_safe($f) {
786 787
         $null = '';
@@ -831,7 +832,7 @@  discard block
 block discarded – undo
831 832
      * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()).
832 833
      * @param		string	INI File string
833 834
      * @param		array	List of names of sections that should be considered as containing only hard string data (no variables), provided in lower case
834
-     * @return	array	Structured array
835
+     * @return	string	Structured array
835 836
      */
836 837
     function parse_ini_string_quotes_safe($s, $pure_strings = array()) {
837 838
         $null = '';
@@ -894,6 +895,7 @@  discard block
 block discarded – undo
894 895
      * @param	string	CSV delimiter
895 896
      * @param	string	CSV enclosure
896 897
      * @param	boolean	Might one field name happen more than once on the same line? (then split by comma in the values)
898
+     * @param string $f
897 899
      * @return array	Simple structured array
898 900
      */
899 901
     function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false) {
Please login to merge, or discard this patch.
main/newscorm/learnpath.class.php 1 patch
Doc Comments   +29 added lines, -24 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param	string	$course Course code
85 85
      * @param	integer	$lp_id
86 86
      * @param	integer	$user_id
87
-     * @return mixed True on success, false on error
87
+     * @return boolean True on success, false on error
88 88
      */
89 89
     public function __construct($course, $lp_id, $user_id)
90 90
     {
@@ -482,7 +482,8 @@  discard block
 block discarded – undo
482 482
      * @param string $description
483 483
      * @param int $prerequisites
484 484
      * @param int $max_time_allowed
485
-     * @return int
485
+     * @param string $id
486
+     * @return false|string
486 487
      */
487 488
     public function add_item(
488 489
         $parent,
@@ -1021,7 +1022,7 @@  discard block
 block discarded – undo
1021 1022
      * @param	array $courseInfo
1022 1023
      * @param	integer	Learnpath ID
1023 1024
      * @param	string	Whether to delete data or keep it (default: 'keep', others: 'remove')
1024
-     * @return	boolean	True on success, false on failure (might change that to return number of elements deleted)
1025
+     * @return	false|null	True on success, false on failure (might change that to return number of elements deleted)
1025 1026
      */
1026 1027
     public function delete($courseInfo = null, $id = null, $delete = 'keep')
1027 1028
     {
@@ -1155,7 +1156,7 @@  discard block
 block discarded – undo
1155 1156
      * @param	integer	$id Elem ID (0 if first)
1156 1157
      * @param	integer	$remove Whether to remove the resource/data from the
1157 1158
      * system or leave it (default: 'keep', others 'remove')
1158
-     * @return	integer	Number of elements moved
1159
+     * @return	false|null	Number of elements moved
1159 1160
      * @todo implement resource removal
1160 1161
      */
1161 1162
     public function delete_item($id, $remove = 'keep')
@@ -1237,7 +1238,7 @@  discard block
 block discarded – undo
1237 1238
      * @param   array   $audio The array resulting of the $_FILES[mp3] element
1238 1239
      * @param   int     $max_time_allowed
1239 1240
      * @param   string  $url
1240
-     * @return  boolean True on success, false on error
1241
+     * @return  false|null True on success, false on error
1241 1242
      */
1242 1243
     public function edit_item(
1243 1244
         $id,
@@ -1760,7 +1761,7 @@  discard block
 block discarded – undo
1760 1761
 
1761 1762
     /**
1762 1763
      * Gets the first element URL.
1763
-     * @return	string	URL to load into the viewer
1764
+     * @return	false|null	URL to load into the viewer
1764 1765
      */
1765 1766
     public function first()
1766 1767
     {
@@ -2276,6 +2277,7 @@  discard block
 block discarded – undo
2276 2277
      * @param int $student_id
2277 2278
      * @param string Course code (optional)
2278 2279
      * @param int $sessionId
2280
+     * @param string $courseCode
2279 2281
      * @return	bool
2280 2282
      */
2281 2283
     public static function is_lp_visible_for_student(
@@ -2575,7 +2577,7 @@  discard block
 block discarded – undo
2575 2577
 
2576 2578
     /**
2577 2579
      * Gets the learnpath session id
2578
-     * @return	string	Learnpath theme
2580
+     * @return	integer	Learnpath theme
2579 2581
      */
2580 2582
     public function get_lp_session_id()
2581 2583
     {
@@ -2608,7 +2610,7 @@  discard block
 block discarded – undo
2608 2610
     /**
2609 2611
      * @param string $size
2610 2612
      * @param string $path_type
2611
-     * @return bool|string
2613
+     * @return string|false
2612 2614
      */
2613 2615
     public function get_preview_image_path($size = null, $path_type = 'web')
2614 2616
     {
@@ -2754,6 +2756,8 @@  discard block
 block discarded – undo
2754 2756
      * Returns the XML DOM document's node
2755 2757
      * @param	resource	Reference to a list of objects to search for the given ITEM_*
2756 2758
      * @param	string		The identifier to look for
2759
+     * @param DOMNodeList $children
2760
+     * @param string $id
2757 2761
      * @return	mixed		The reference to the element found with that identifier. False if not found
2758 2762
      */
2759 2763
     public function get_scorm_xml_node(& $children, $id)
@@ -3001,7 +3005,7 @@  discard block
 block discarded – undo
3001 3005
     /**
3002 3006
      * Generate and return the table of contents for this learnpath. The (flat) table returned can be
3003 3007
      * used by get_html_toc() to be ready to display
3004
-     * @return	array	TOC as a table with 4 elements per row: title, link, status and level
3008
+     * @return	boolean	TOC as a table with 4 elements per row: title, link, status and level
3005 3009
      */
3006 3010
     public function get_toc()
3007 3011
     {
@@ -3137,7 +3141,7 @@  discard block
 block discarded – undo
3137 3141
     }
3138 3142
 
3139 3143
     /**
3140
-     * @return array
3144
+     * @return string[]
3141 3145
      */
3142 3146
     public static function getChapterTypes()
3143 3147
     {
@@ -4050,7 +4054,7 @@  discard block
 block discarded – undo
4050 4054
      * Open a resource = initialise all local variables relative to this resource. Depending on the child
4051 4055
      * class, this might be redefined to allow several behaviours depending on the document type.
4052 4056
      * @param integer Resource ID
4053
-     * @return boolean True on success, false otherwise
4057
+     * @return boolean|null True on success, false otherwise
4054 4058
      */
4055 4059
     public function open($id)
4056 4060
     {
@@ -4179,7 +4183,7 @@  discard block
 block discarded – undo
4179 4183
      * Can be used as abstract
4180 4184
      * @param	integer	$lp_id Learnpath id
4181 4185
      * @param	string	$set_visibility New visibility (v/i - visible/invisible)
4182
-     * @return bool
4186
+     * @return false|null
4183 4187
      */
4184 4188
     public static function toggle_publish($lp_id, $set_visibility = 'v')
4185 4189
     {
@@ -4264,7 +4268,7 @@  discard block
 block discarded – undo
4264 4268
      * Make sure the results are saved with anoter method. This method should probably be
4265 4269
      * redefined in children classes.
4266 4270
      * To use a similar method  statically, use the create_new_attempt() method
4267
-     * @return string URL to load in the viewer
4271
+     * @return boolean URL to load in the viewer
4268 4272
      */
4269 4273
     public function restart()
4270 4274
     {
@@ -4342,6 +4346,7 @@  discard block
 block discarded – undo
4342 4346
      * Saves the given item
4343 4347
      * @param	integer	$item_id. Optional (will take from $_REQUEST if null)
4344 4348
      * @param	boolean	$from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true
4349
+     * @param integer $item_id
4345 4350
      * @return	boolean
4346 4351
      */
4347 4352
     public function save_item($item_id = null, $from_outside = true)
@@ -4839,7 +4844,7 @@  discard block
 block discarded – undo
4839 4844
 
4840 4845
     /**
4841 4846
      * Sets use_max_score
4842
-     * @param   string  $use_max_score Optional string giving the new location of this learnpath
4847
+     * @param   integer  $use_max_score Optional string giving the new location of this learnpath
4843 4848
      * @return  boolean True on success / False on error
4844 4849
      */
4845 4850
     public function set_use_max_score($use_max_score = 1)
@@ -5240,6 +5245,7 @@  discard block
 block discarded – undo
5240 5245
      * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags
5241 5246
      *
5242 5247
      * @param string 'seriousgame', 'single' or 'multiple'
5248
+     * @param string $mode
5243 5249
      * @return boolean
5244 5250
      * @author ndiechburg <[email protected]>
5245 5251
      **/
@@ -5282,7 +5288,7 @@  discard block
 block discarded – undo
5282 5288
     /**
5283 5289
      * Switch between multiple attempt, single attempt or serious_game mode (only for scorm)
5284 5290
      *
5285
-     * @return boolean
5291
+     * @return boolean|null
5286 5292
      * @author ndiechburg <[email protected]>
5287 5293
      **/
5288 5294
     public function switch_attempt_mode()
@@ -5473,7 +5479,6 @@  discard block
 block discarded – undo
5473 5479
     /**
5474 5480
      * Function that creates a html list of learning path items so that we can add audio files to them
5475 5481
      * @author Kevin Van Den Haute
5476
-     * @param int $lp_id
5477 5482
      * @return string
5478 5483
      */
5479 5484
     public function overview()
@@ -5844,7 +5849,7 @@  discard block
 block discarded – undo
5844 5849
     /**
5845 5850
      * This function builds the action menu
5846 5851
      * @param bool $returnContent
5847
-     * @return void
5852
+     * @return string|null
5848 5853
      */
5849 5854
     public function build_action_menu($returnContent = false)
5850 5855
     {
@@ -6335,7 +6340,7 @@  discard block
 block discarded – undo
6335 6340
     /**
6336 6341
      * Function that displays a list with al the resources that
6337 6342
      * could be added to the learning path
6338
-     * @return string
6343
+     * @return boolean
6339 6344
      */
6340 6345
     public function display_resources()
6341 6346
     {
@@ -8770,7 +8775,7 @@  discard block
 block discarded – undo
8770 8775
 
8771 8776
     /**
8772 8777
      * Creates a list with all the student publications in it
8773
-     * @return unknown
8778
+     * @return string
8774 8779
      */
8775 8780
     public function get_student_publications()
8776 8781
     {
@@ -9715,7 +9720,7 @@  discard block
 block discarded – undo
9715 9720
 
9716 9721
     /**
9717 9722
      * @param int $lp_id
9718
-     * @return bool
9723
+     * @return false|null
9719 9724
      */
9720 9725
     public function scorm_export_to_pdf($lp_id)
9721 9726
     {
@@ -10232,6 +10237,7 @@  discard block
 block discarded – undo
10232 10237
     }
10233 10238
 
10234 10239
     /**
10240
+     * @param string $courseCode
10235 10241
      * @return \learnpath
10236 10242
      */
10237 10243
     public static function getLpFromSession($courseCode, $lp_id, $user_id)
@@ -10251,7 +10257,7 @@  discard block
 block discarded – undo
10251 10257
 
10252 10258
     /**
10253 10259
      * @param int $itemId
10254
-     * @return learnpathItem|false
10260
+     * @return string
10255 10261
      */
10256 10262
     public function getItem($itemId)
10257 10263
     {
@@ -10301,7 +10307,6 @@  discard block
 block discarded – undo
10301 10307
     /**
10302 10308
      * Set whether this is a learning path with the possibility to subscribe
10303 10309
      * users or not
10304
-     * @param int $subscribeUsers (0 = false, 1 = true)
10305 10310
      */
10306 10311
     public function setSubscribeUsers($value)
10307 10312
     {
@@ -10426,7 +10431,7 @@  discard block
 block discarded – undo
10426 10431
 
10427 10432
     /**
10428 10433
      * Get the item of exercise type (evaluation type)
10429
-     * @return array The final evaluation. Otherwise return false
10434
+     * @return integer The final evaluation. Otherwise return false
10430 10435
      */
10431 10436
     public function getFinalEvaluationItem()
10432 10437
     {
@@ -10650,7 +10655,7 @@  discard block
 block discarded – undo
10650 10655
     /**
10651 10656
      * Create a forum for this learning path
10652 10657
      * @param type $forumCategoryId
10653
-     * @return int The forum ID if was created. Otherwise return false
10658
+     * @return false|string The forum ID if was created. Otherwise return false
10654 10659
      */
10655 10660
     public function createForum($forumCategoryId)
10656 10661
     {
Please login to merge, or discard this patch.