Completed
Branch release-2.1 (4c82a0)
by Rick
15:44
created
Sources/Load.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2185,9 +2185,9 @@  discard block
 block discarded – undo
2185 2185
  *
2186 2186
  * @uses the template_include() function to include the file.
2187 2187
  * @param string $template_name The name of the template to load
2188
- * @param array|string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load
2188
+ * @param string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load
2189 2189
  * @param bool $fatal If true, dies with an error message if the template cannot be found
2190
- * @return boolean Whether or not the template was loaded
2190
+ * @return boolean|null Whether or not the template was loaded
2191 2191
  */
2192 2192
 function loadTemplate($template_name, $style_sheets = array(), $fatal = true)
2193 2193
 {
@@ -2374,7 +2374,7 @@  discard block
 block discarded – undo
2374 2374
  * - all code added with this function is added to the same <style> tag so do make sure your css is valid!
2375 2375
  *
2376 2376
  * @param string $css Some css code
2377
- * @return void|bool Adds the CSS to the $context['css_header'] array or returns if no CSS is specified
2377
+ * @return false|null Adds the CSS to the $context['css_header'] array or returns if no CSS is specified
2378 2378
  */
2379 2379
 function addInlineCss($css)
2380 2380
 {
@@ -2390,7 +2390,7 @@  discard block
 block discarded – undo
2390 2390
 /**
2391 2391
  * Add a Javascript file for output later
2392 2392
 
2393
- * @param string $filename The name of the file to load
2393
+ * @param string $fileName The name of the file to load
2394 2394
  * @param array $params An array of parameter info
2395 2395
  * Keys are the following:
2396 2396
  * 	- ['external'] (true/false): define if the file is a externally located file. Needs to be set to true if you are loading an external file
@@ -2487,7 +2487,7 @@  discard block
 block discarded – undo
2487 2487
  *
2488 2488
  * @param string $javascript Some JS code
2489 2489
  * @param bool $defer Whether the script should load in <head> or before the closing <html> tag
2490
- * @return void|bool Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified
2490
+ * @return false|null Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified
2491 2491
  */
2492 2492
 function addInlineJavascript($javascript, $defer = false)
2493 2493
 {
@@ -2717,7 +2717,7 @@  discard block
 block discarded – undo
2717 2717
  *
2718 2718
  * @param bool $use_cache Whether or not to use the cache
2719 2719
  * @param bool $favor_utf8 Whether or not to favor UTF-8 files
2720
- * @return array An array of information about available languages
2720
+ * @return string An array of information about available languages
2721 2721
  */
2722 2722
 function getLanguages($use_cache = true, $favor_utf8 = true)
2723 2723
 {
Please login to merge, or discard this patch.
Sources/ManageBans.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
  * Doesn't clean the inputs
926 926
  *
927 927
  * @param array $items_ids The items to remove
928
- * @param bool|int $group_id The ID of the group these triggers are associated with or false if deleting them from all groups
928
+ * @param integer $group_id The ID of the group these triggers are associated with or false if deleting them from all groups
929 929
  * @return bool Always returns true
930 930
  */
931 931
 function removeBanTriggers($items_ids = array(), $group_id = false)
@@ -1119,7 +1119,7 @@  discard block
 block discarded – undo
1119 1119
  * Errors in $context['ban_errors']
1120 1120
  *
1121 1121
  * @param array $triggers The triggers to validate
1122
- * @return array An array of riggers and log info ready to be used
1122
+ * @return integer An array of riggers and log info ready to be used
1123 1123
  */
1124 1124
 function validateTriggers(&$triggers)
1125 1125
 {
Please login to merge, or discard this patch.
Sources/ManagePaid.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1452,7 +1452,7 @@
 block discarded – undo
1452 1452
  *
1453 1453
  * @param int $id_subscribe The subscription ID
1454 1454
  * @param int $id_member The ID of the member
1455
- * @param int|string $renewal 0 if we're forcing start/end time, otherwise a string indicating how long to renew the subscription for ('D', 'W', 'M' or 'Y')
1455
+ * @param integer $renewal 0 if we're forcing start/end time, otherwise a string indicating how long to renew the subscription for ('D', 'W', 'M' or 'Y')
1456 1456
  * @param int $forceStartTime If set, forces the subscription to start at the specified time
1457 1457
  * @param int $forceEndTime If set, forces the subscription to end at the specified time
1458 1458
  */
Please login to merge, or discard this patch.
Sources/PersonalMessage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4065,7 +4065,7 @@
 block discarded – undo
4065 4065
  *
4066 4066
  * @param int $pmID The ID of the PM
4067 4067
  * @param string $validFor Which folders this is valud for - can be 'inbox', 'outbox' or 'in_or_outbox'
4068
- * @return boolean Whether the PM is accessible in that folder for the current user
4068
+ * @return boolean|null Whether the PM is accessible in that folder for the current user
4069 4069
  */
4070 4070
 function isAccessiblePM($pmID, $validFor = 'in_or_outbox')
4071 4071
 {
Please login to merge, or discard this patch.
Sources/Profile-Modify.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2183,7 +2183,7 @@  discard block
 block discarded – undo
2183 2183
  * Deletes a single or a group of alerts by ID
2184 2184
  *
2185 2185
  * @param int|array The ID of a single alert to delete or an array containing the IDs of multiple alerts. The function will convert integers into an array for better handling.
2186
- * @param bool|int $memID The user ID. Used to update the user unread alerts count.
2186
+ * @param integer $memID The user ID. Used to update the user unread alerts count.
2187 2187
  * @return void|int If the $memID param is set, returns the new amount of unread alerts.
2188 2188
  */
2189 2189
 function alert_delete($toDelete, $memID = false)
@@ -2839,7 +2839,7 @@  discard block
 block discarded – undo
2839 2839
 /**
2840 2840
  * Handles the "manage groups" section of the profile
2841 2841
  *
2842
- * @return true Always returns true
2842
+ * @return boolean Always returns true
2843 2843
  */
2844 2844
 function profileLoadGroups()
2845 2845
 {
@@ -2896,7 +2896,7 @@  discard block
 block discarded – undo
2896 2896
 /**
2897 2897
  * Load key signature context data.
2898 2898
  *
2899
- * @return true Always returns true
2899
+ * @return boolean Always returns true
2900 2900
  */
2901 2901
 function profileLoadSignatureData()
2902 2902
 {
@@ -2960,7 +2960,7 @@  discard block
 block discarded – undo
2960 2960
 /**
2961 2961
  * Load avatar context data.
2962 2962
  *
2963
- * @return true Always returns true
2963
+ * @return boolean Always returns true
2964 2964
  */
2965 2965
 function profileLoadAvatarData()
2966 2966
 {
@@ -3033,7 +3033,7 @@  discard block
 block discarded – undo
3033 3033
  * Save a members group.
3034 3034
  *
3035 3035
  * @param int &$value The ID of the (new) primary group
3036
- * @return true Always returns true
3036
+ * @return boolean Always returns true
3037 3037
  */
3038 3038
 function profileSaveGroups(&$value)
3039 3039
 {
@@ -3138,7 +3138,7 @@  discard block
 block discarded – undo
3138 3138
  * @todo argh, the avatar here. Take this out of here!
3139 3139
  *
3140 3140
  * @param string &$value What kind of avatar we're expecting. Can be 'none', 'server_stored', 'gravatar', 'external' or 'upload'
3141
- * @return bool|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred
3141
+ * @return false|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred
3142 3142
  */
3143 3143
 function profileSaveAvatarData(&$value)
3144 3144
 {
Please login to merge, or discard this patch.
Sources/Profile-View.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2610,7 +2610,7 @@
 block discarded – undo
2610 2610
  * @param int $start Which item to start with (for pagination purposes)
2611 2611
  * @param int $items_per_page How many items to show on each page
2612 2612
  * @param string $sort A string indicating how to sort the results
2613
- * @param int $memID The ID of the member
2613
+ * @param string $memID The ID of the member
2614 2614
  * @return array An array of information about the user's group requests
2615 2615
  */
2616 2616
 function list_getGroupRequests($start, $items_per_page, $sort, $memID)
Please login to merge, or discard this patch.
Sources/QueryString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
  * Validates a IPv6 address. returns true if it is ipv6.
322 322
  *
323 323
  * @param string $ip The ip address to be validated
324
- * @return boolean Whether the specified IP is a valid IPv6 address
324
+ * @return false|string Whether the specified IP is a valid IPv6 address
325 325
  */
326 326
 function isValidIPv6($ip)
327 327
 {
Please login to merge, or discard this patch.
Sources/RemoveTopic.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1491,7 +1491,7 @@
 block discarded – undo
1491 1491
 
1492 1492
 /**
1493 1493
  * Try to determine if the topic has already been deleted by another user.
1494
- * @return bool False if it can't be deleted (recycling not enabled or no recycling board set), true if we've confirmed it can be deleted. Dies with an error if it's already been deleted.
1494
+ * @return boolean|null False if it can't be deleted (recycling not enabled or no recycling board set), true if we've confirmed it can be deleted. Dies with an error if it's already been deleted.
1495 1495
  */
1496 1496
 function removeDeleteConcurrence()
1497 1497
 {
Please login to merge, or discard this patch.
Sources/Reports.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1013,7 +1013,7 @@
 block discarded – undo
1013 1013
  * @param string $title The title of the separator
1014 1014
  * @param null|string $custom_table The ID of the custom table
1015 1015
  *
1016
- * @return void|bool Returns false if there are no tables
1016
+ * @return null|false Returns false if there are no tables
1017 1017
  */
1018 1018
 function addSeparator($title = '', $custom_table = null)
1019 1019
 {
Please login to merge, or discard this patch.