Completed
Push — release-2.1 ( 30c7e3...519216 )
by Mert
12:42
created
Sources/Class-Graphics.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -44,6 +44,10 @@  discard block
 block discarded – undo
44 44
 		$this->Buf   = range(0, 279);
45 45
 	}
46 46
 
47
+	/**
48
+	 * @param string $data
49
+	 * @param integer $datLen
50
+	 */
47 51
 	public function decompress($data, &$datLen)
48 52
 	{
49 53
 		$stLen  = strlen($data);
@@ -63,6 +67,11 @@  discard block
 block discarded – undo
63 67
 		return $ret;
64 68
 	}
65 69
 
70
+	/**
71
+	 * @param boolean $bInit
72
+	 *
73
+	 * @return integer
74
+	 */
66 75
 	public function LZWCommand(&$data, $bInit)
67 76
 	{
68 77
 		if ($bInit)
@@ -253,6 +262,10 @@  discard block
 block discarded – undo
253 262
 		unset($this->m_nColors, $this->m_arColors);
254 263
 	}
255 264
 
265
+	/**
266
+	 * @param string $lpData
267
+	 * @param integer $num
268
+	 */
256 269
 	public function load($lpData, $num)
257 270
 	{
258 271
 		$this->m_nColors  = 0;
@@ -324,6 +337,9 @@  discard block
 block discarded – undo
324 337
 		unset($this->m_bSorted, $this->m_nTableSize, $this->m_nBgColor, $this->m_nPixelRatio, $this->m_colorTable);
325 338
 	}
326 339
 
340
+	/**
341
+	 * @param integer $hdrLen
342
+	 */
327 343
 	public function load($lpData, &$hdrLen)
328 344
 	{
329 345
 		$hdrLen = 0;
@@ -370,6 +386,10 @@  discard block
 block discarded – undo
370 386
 		unset($this->m_bInterlace, $this->m_bSorted, $this->m_nTableSize, $this->m_colorTable);
371 387
 	}
372 388
 
389
+	/**
390
+	 * @param string $lpData
391
+	 * @param integer $hdrLen
392
+	 */
373 393
 	public function load($lpData, &$hdrLen)
374 394
 	{
375 395
 		$hdrLen = 0;
@@ -412,6 +432,10 @@  discard block
 block discarded – undo
412 432
 		$this->m_lzw = new gif_lzw_compression();
413 433
 	}
414 434
 
435
+	/**
436
+	 * @param string $data
437
+	 * @param integer $datLen
438
+	 */
415 439
 	public function load($data, &$datLen)
416 440
 	{
417 441
 		$datLen = 0;
@@ -464,6 +488,10 @@  discard block
 block discarded – undo
464 488
 		return false;
465 489
 	}
466 490
 
491
+	/**
492
+	 * @param string $data
493
+	 * @param integer $extLen
494
+	 */
467 495
 	public function skipExt(&$data, &$extLen)
468 496
 	{
469 497
 		$extLen = 0;
Please login to merge, or discard this patch.
Sources/Class-TOTP.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	/**
280 280
 	 * Generate the timestamp for the calculation
281 281
 	 *
282
-	 * @return integer Timestamp
282
+	 * @return double Timestamp
283 283
 	 */
284 284
 	public function generateTimestamp()
285 285
 	{
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 * Truncate the given hash down to just what we need
291 291
 	 *
292 292
 	 * @param string $hash Hash to truncate
293
-	 * @return string Truncated hash value
293
+	 * @return integer Truncated hash value
294 294
 	 */
295 295
 	public function truncateHash($hash)
296 296
 	{
Please login to merge, or discard this patch.
Sources/DbPackages-mysql.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@
 block discarded – undo
382 382
  * @param array $parameters Not used?
383 383
  * @param string $if_exists What to do if the index exists. If 'update', the definition will be updated.
384 384
  * @param string $error
385
- * @return boolean Whether or not the operation was successful
385
+ * @return false|null Whether or not the operation was successful
386 386
  */
387 387
 function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_exists = 'update', $error = 'fatal')
388 388
 {
Please login to merge, or discard this patch.
Sources/Drafts.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
  *
176 176
  * @param string $post_errors A string of info about errors encountered trying to save this draft
177 177
  * @param array $recipientList An array of data about who this PM is being sent to
178
- * @return boolean false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise
178
+ * @return boolean|null false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise
179 179
  */
180 180
 function SavePMDraft(&$post_errors, $recipientList)
181 181
 {
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
  *
393 393
  * @param int $id_draft The ID of the draft to delete
394 394
  * @param boolean $check Whether or not to check that the draft belongs to the current user
395
- * @return boolean False if it couldn't be deleted (doesn't return anything otherwise)
395
+ * @return false|null False if it couldn't be deleted (doesn't return anything otherwise)
396 396
  */
397 397
 function DeleteDraft($id_draft, $check = true)
398 398
 {
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
  * @param int $member_id ID of the member to show drafts for
427 427
  * @param boolean|integer If $type is 1, this can be set to only load drafts for posts in the specific topic
428 428
  * @param int $draft_type The type of drafts to show - 0 for post drafts, 1 for PM drafts
429
- * @return boolean False if the drafts couldn't be loaded, nothing otherwise
429
+ * @return false|null False if the drafts couldn't be loaded, nothing otherwise
430 430
  */
431 431
 function ShowDrafts($member_id, $topic = false, $draft_type = 0)
432 432
 {
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
  * Allows for the deleting and loading/editing of drafts
511 511
  *
512 512
  * @param type $memID
513
- * @param type $draft_type
513
+ * @param integer $draft_type
514 514
  */
515 515
 function showProfileDrafts($memID, $draft_type = 0)
516 516
 {
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
  * Uses the showpmdraft template
662 662
  * Allows for the deleting and loading/editing of drafts
663 663
  *
664
- * @param type $memID
664
+ * @param integer $memID
665 665
  */
666 666
 function showPMDrafts($memID = -1)
667 667
 {
Please login to merge, or discard this patch.
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/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.