Completed
Pull Request — development (#2331)
by Joshua
10:23
created
sources/subs/Mentions.subs.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @package Mentions
22 22
  * @param bool $all : if true counts all the mentions, otherwise only the unread
23
- * @param string[]|string $type : the type of the mention can be a string or an array of strings.
23
+ * @param string $type : the type of the mention can be a string or an array of strings.
24 24
  * @param string|null $id_member : the id of the member the counts are for, defaults to user_info['id']
25 25
  */
26 26
 function countUserMentions($all = false, $type = '', $id_member = null)
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
  * @param int $limit Number of mentions returned
72 72
  * @param string $sort Sorting
73 73
  * @param bool $all if show all mentions or only unread ones
74
- * @param string[]|string $type : the type of the mention can be a string or an array of strings.
74
+ * @param string $type : the type of the mention can be a string or an array of strings.
75 75
  */
76 76
 function getUserMentions($start, $limit, $sort, $all = false, $type = '')
77 77
 {
Please login to merge, or discard this patch.
sources/subs/Notification.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -914,7 +914,7 @@
 block discarded – undo
914 914
  * Saves into the database the notification preferences of a certain member.
915 915
  *
916 916
  * @param int $member The member id
917
- * @param int[] $notification_types The array of notifications ('type' => 'level')
917
+ * @param int[] $notification_data The array of notifications ('type' => 'level')
918 918
  */
919 919
 function saveUserNotificationsPreferences($member, $notification_data)
920 920
 {
Please login to merge, or discard this patch.
sources/subs/Notifications.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
 	 */
53 53
 	protected $_protect_id = true;
54 54
 
55
+	/**
56
+	 * @param Database $db
57
+	 */
55 58
 	public function __construct($db)
56 59
 	{
57 60
 		parent::__construct($db);
Please login to merge, or discard this patch.
sources/subs/Package.subs.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  * @param bool $single_file = false
31 31
  * @param bool $overwrite = false
32 32
  * @param string[]|null $files_to_extract = null
33
- * @return string|false
33
+ * @return string
34 34
  */
35 35
 function read_tgz_file($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null)
36 36
 {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
  * @param bool $single_file = false,
80 80
  * @param bool $overwrite = false,
81 81
  * @param string[]|null $files_to_extract = null
82
- * @return string|false
82
+ * @return string
83 83
  */
84 84
 function read_tgz_data($data, $destination, $single_file = false, $overwrite = false, $files_to_extract = null)
85 85
 {
Please login to merge, or discard this patch.
sources/subs/PersonalMessage.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@
 block discarded – undo
349 349
  * Mark the specified personal messages as unread.
350 350
  *
351 351
  * @package PersonalMessage
352
- * @param int|int[] $personal_messages
352
+ * @param integer $personal_messages
353 353
  */
354 354
 function markMessagesUnread($personal_messages)
355 355
 {
Please login to merge, or discard this patch.
sources/subs/Post.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1529,7 +1529,7 @@
 block discarded – undo
1529 1529
  * - if editing is true, returns $message|$message[errors], else returns array($subject, $message)
1530 1530
  *
1531 1531
  * @package Posts
1532
- * @param int|bool $editing
1532
+ * @param integer $editing
1533 1533
  * @param int|null|false $topic
1534 1534
  * @param string $first_subject
1535 1535
  * @param int $msg_id
Please login to merge, or discard this patch.
sources/subs/TopicsMerge.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 	/**
138 138
 	 * The first error occurred
139 139
 	 *
140
-	 * @return bool|mixed[]
140
+	 * @return string
141 141
 	 */
142 142
 	public function firstError()
143 143
 	{
Please login to merge, or discard this patch.
sources/subs/Unread.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	 * Sets the sorting query and the direction
117 117
 	 *
118 118
 	 * @param string $query - The query to be used in the ORDER clause
119
-	 * @param bool|int $asc - If the sorting is ascending or not
119
+	 * @param boolean $asc - If the sorting is ascending or not
120 120
 	 */
121 121
 	public function setSorting($query, $asc)
122 122
 	{
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 *                       the messages table
219 219
 	 * @param int $start - position to start the query
220 220
 	 * @param int $limit - number of entries to grab
221
-	 * @param bool|int $include_avatars - if avatars should be retrieved as well
221
+	 * @param boolean $include_avatars - if avatars should be retrieved as well
222 222
 	 * @return mixed[] - see Topic_Util::prepareContext
223 223
 	 */
224 224
 	private function _getUnreadTopics($join, $start, $limit, $include_avatars = false)
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 	 *
384 384
 	 * @param int $start - position to start the query
385 385
 	 * @param int $limit - number of entries to grab
386
-	 * @param bool|int $include_avatars - if avatars should be retrieved as well
386
+	 * @param boolean $include_avatars - if avatars should be retrieved as well
387 387
 	 * @return mixed[] - see Topic_Util::prepareContext
388 388
 	 */
389 389
 	private function _getUnreadReplies($start, $limit, $include_avatars = false)
Please login to merge, or discard this patch.
sources/subs/VerificationControls.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
 	/**
399 399
 	 * Required by the interface, returns true for Captcha display
400
-	 * @return true
400
+	 * @return boolean
401 401
 	 */
402 402
 	public function hasVisibleTemplate()
403 403
 	{
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	/**
662 662
 	 * Required by the interface, returns true for question challenges
663 663
 	 *
664
-	 * @return true
664
+	 * @return boolean
665 665
 	 */
666 666
 	public function hasVisibleTemplate()
667 667
 	{
Please login to merge, or discard this patch.