Completed
Push — release-2.1 ( dacf2a...74ad50 )
by Mert
13:42
created
Sources/Errors.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@
 block discarded – undo
473 473
  * Used by fatal_error(), fatal_lang_error()
474 474
  *
475 475
  * @param string $error The error
476
- * @param array $sprintf An array of data to be sprintf()'d into the specified message
476
+ * @param boolean $sprintf An array of data to be sprintf()'d into the specified message
477 477
  */
478 478
 function log_error_online($error, $sprintf = array())
479 479
 {
Please login to merge, or discard this patch.
Sources/Load.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2182,9 +2182,9 @@  discard block
 block discarded – undo
2182 2182
  *
2183 2183
  * @uses the template_include() function to include the file.
2184 2184
  * @param string $template_name The name of the template to load
2185
- * @param array|string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load
2185
+ * @param string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load
2186 2186
  * @param bool $fatal If true, dies with an error message if the template cannot be found
2187
- * @return boolean Whether or not the template was loaded
2187
+ * @return boolean|null Whether or not the template was loaded
2188 2188
  */
2189 2189
 function loadTemplate($template_name, $style_sheets = array(), $fatal = true)
2190 2190
 {
@@ -2349,7 +2349,7 @@  discard block
 block discarded – undo
2349 2349
  * - all code added with this function is added to the same <style> tag so do make sure your css is valid!
2350 2350
  *
2351 2351
  * @param string $css Some css code
2352
- * @return void|bool Adds the CSS to the $context['css_header'] array or returns if no CSS is specified
2352
+ * @return false|null Adds the CSS to the $context['css_header'] array or returns if no CSS is specified
2353 2353
  */
2354 2354
 function addInlineCss($css)
2355 2355
 {
@@ -2437,7 +2437,7 @@  discard block
 block discarded – undo
2437 2437
  *
2438 2438
  * @param string $javascript Some JS code
2439 2439
  * @param bool $defer Whether the script should load in <head> or before the closing <html> tag
2440
- * @return void|bool Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified
2440
+ * @return false|null Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified
2441 2441
  */
2442 2442
 function addInlineJavascript($javascript, $defer = false)
2443 2443
 {
@@ -2667,7 +2667,7 @@  discard block
 block discarded – undo
2667 2667
  *
2668 2668
  * @param bool $use_cache Whether or not to use the cache
2669 2669
  * @param bool $favor_utf8 Whether or not to favor UTF-8 files
2670
- * @return array An array of information about available languages
2670
+ * @return string An array of information about available languages
2671 2671
  */
2672 2672
 function getLanguages($use_cache = true, $favor_utf8 = true)
2673 2673
 {
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
@@ -924,7 +924,7 @@  discard block
 block discarded – undo
924 924
  * Doesn't clean the inputs
925 925
  *
926 926
  * @param array $items_ids The items to remove
927
- * @param bool|int $group_id The ID of the group these triggers are associated with or false if deleting them from all groups
927
+ * @param integer $group_id The ID of the group these triggers are associated with or false if deleting them from all groups
928 928
  * @return bool Always returns true
929 929
  */
930 930
 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
@@ -1449,7 +1449,7 @@
 block discarded – undo
1449 1449
  *
1450 1450
  * @param int $id_subscribe The subscription ID
1451 1451
  * @param int $id_member The ID of the member
1452
- * @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')
1452
+ * @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')
1453 1453
  * @param int $forceStartTime If set, forces the subscription to start at the specified time
1454 1454
  * @param int $forceEndTime If set, forces the subscription to end at the specified time
1455 1455
  */
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
@@ -4102,7 +4102,7 @@
 block discarded – undo
4102 4102
  *
4103 4103
  * @param int $pmID The ID of the PM
4104 4104
  * @param string $validFor Which folders this is valud for - can be 'inbox', 'outbox' or 'in_or_outbox'
4105
- * @return boolean Whether the PM is accessible in that folder for the current user
4105
+ * @return boolean|null Whether the PM is accessible in that folder for the current user
4106 4106
  */
4107 4107
 function isAccessiblePM($pmID, $validFor = 'in_or_outbox')
4108 4108
 {
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
@@ -2181,7 +2181,7 @@  discard block
 block discarded – undo
2181 2181
  * Deletes a single or a group of alerts by ID
2182 2182
  *
2183 2183
  * @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.
2184
- * @param bool|int $memID The user ID. Used to update the user unread alerts count.
2184
+ * @param integer $memID The user ID. Used to update the user unread alerts count.
2185 2185
  * @return void|int If the $memID param is set, returns the new amount of unread alerts.
2186 2186
  */
2187 2187
 function alert_delete($toDelete, $memID = false)
@@ -2836,7 +2836,7 @@  discard block
 block discarded – undo
2836 2836
 /**
2837 2837
  * Handles the "manage groups" section of the profile
2838 2838
  *
2839
- * @return true Always returns true
2839
+ * @return boolean Always returns true
2840 2840
  */
2841 2841
 function profileLoadGroups()
2842 2842
 {
@@ -2893,7 +2893,7 @@  discard block
 block discarded – undo
2893 2893
 /**
2894 2894
  * Load key signature context data.
2895 2895
  *
2896
- * @return true Always returns true
2896
+ * @return boolean Always returns true
2897 2897
  */
2898 2898
 function profileLoadSignatureData()
2899 2899
 {
@@ -2957,7 +2957,7 @@  discard block
 block discarded – undo
2957 2957
 /**
2958 2958
  * Load avatar context data.
2959 2959
  *
2960
- * @return true Always returns true
2960
+ * @return boolean Always returns true
2961 2961
  */
2962 2962
 function profileLoadAvatarData()
2963 2963
 {
@@ -3030,7 +3030,7 @@  discard block
 block discarded – undo
3030 3030
  * Save a members group.
3031 3031
  *
3032 3032
  * @param int &$value The ID of the (new) primary group
3033
- * @return true Always returns true
3033
+ * @return boolean Always returns true
3034 3034
  */
3035 3035
 function profileSaveGroups(&$value)
3036 3036
 {
@@ -3132,7 +3132,7 @@  discard block
 block discarded – undo
3132 3132
  * @todo argh, the avatar here. Take this out of here!
3133 3133
  *
3134 3134
  * @param string &$value What kind of avatar we're expecting. Can be 'none', 'server_stored', 'gravatar', 'external' or 'upload'
3135
- * @return bool|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred
3135
+ * @return false|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred
3136 3136
  */
3137 3137
 function profileSaveAvatarData(&$value)
3138 3138
 {
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
@@ -2594,7 +2594,7 @@
 block discarded – undo
2594 2594
  * @param int $start Which item to start with (for pagination purposes)
2595 2595
  * @param int $items_per_page How many items to show on each page
2596 2596
  * @param string $sort A string indicating how to sort the results
2597
- * @param int $memID The ID of the member
2597
+ * @param string $memID The ID of the member
2598 2598
  * @return array An array of information about the user's group requests
2599 2599
  */
2600 2600
 function list_getGroupRequests($start, $items_per_page, $sort, $memID)
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
@@ -1489,7 +1489,7 @@
 block discarded – undo
1489 1489
 
1490 1490
 /**
1491 1491
  * Try to determine if the topic has already been deleted by another user.
1492
- * @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.
1492
+ * @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.
1493 1493
  */
1494 1494
 function removeDeleteConcurrence()
1495 1495
 {
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
@@ -1012,7 +1012,7 @@
 block discarded – undo
1012 1012
  * @param string $title The title of the separator
1013 1013
  * @param null|string $custom_table The ID of the custom table
1014 1014
  *
1015
- * @return void|bool Returns false if there are no tables
1015
+ * @return null|false Returns false if there are no tables
1016 1016
  */
1017 1017
 function addSeparator($title = '', $custom_table = null)
1018 1018
 {
Please login to merge, or discard this patch.