Completed
Push — release-2.1 ( 64d581...84b0cc )
by Rick
06:44 queued 10s
created
Sources/Class-CurlFetchWeb.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	* Start the curl object
63 63
 	* - allow for user override values
64 64
 	*
65
-	* @param array $options An array of cURL options
65
+	* @param integer[] $options An array of cURL options
66 66
 	* @param int $max_redirect Maximum number of redirects
67 67
 	* @return void
68 68
 	*/
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 	*  - calls set_options to set the curl opts array values based on the defaults and user input
82 82
 	*
83 83
 	* @param string $url the site we are going to fetch
84
-	* @param array $post_data any post data as form name => value
85
-	* @return object An instance of the curl_fetch_web_data class
84
+	* @param string $post_data any post data as form name => value
85
+	* @return curl_fetch_web_data An instance of the curl_fetch_web_data class
86 86
 	*/
87 87
 	public function get_url_data($url, $post_data = array())
88 88
 	{
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	*
107 107
 	* @param string $url The site to fetch
108 108
 	* @param bool $redirect Whether or not this was a redirect request
109
-	* @return void|bool Sets various properties of the class or returns false if the URL isn't specified
109
+	* @return false|null Sets various properties of the class or returns false if the URL isn't specified
110 110
 	*/
111 111
 	private function curl_request($url, $redirect = false)
112 112
 	{
Please login to merge, or discard this patch.
Sources/Class-Graphics.php 2 patches
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.
Switch Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -425,40 +425,40 @@  discard block
 block discarded – undo
425 425
 			switch ($b)
426 426
 			{
427 427
 			// Extension...
428
-			case 0x21:
429
-				$len = 0;
430
-				if (!$this->skipExt($data, $len))
431
-					return false;
428
+				case 0x21:
429
+					$len = 0;
430
+					if (!$this->skipExt($data, $len))
431
+						return false;
432 432
 
433
-				$datLen += $len;
434
-				break;
433
+					$datLen += $len;
434
+					break;
435 435
 
436
-			// Image...
437
-			case 0x2C:
438
-				// Load the header and color table.
439
-				$len = 0;
440
-				if (!$this->m_gih->load($data, $len))
441
-					return false;
436
+				// Image...
437
+				case 0x2C:
438
+					// Load the header and color table.
439
+					$len = 0;
440
+					if (!$this->m_gih->load($data, $len))
441
+						return false;
442 442
 
443
-				$data = substr($data, $len);
444
-				$datLen += $len;
443
+					$data = substr($data, $len);
444
+					$datLen += $len;
445 445
 
446
-				// Decompress the data, and ride on home ;).
447
-				$len = 0;
448
-				if (!($this->m_data = $this->m_lzw->decompress($data, $len)))
449
-					return false;
446
+					// Decompress the data, and ride on home ;).
447
+					$len = 0;
448
+					if (!($this->m_data = $this->m_lzw->decompress($data, $len)))
449
+						return false;
450 450
 
451
-				$data = substr($data, $len);
452
-				$datLen += $len;
451
+					$data = substr($data, $len);
452
+					$datLen += $len;
453 453
 
454
-				if ($this->m_gih->m_bInterlace)
455
-					$this->deInterlace();
454
+					if ($this->m_gih->m_bInterlace)
455
+						$this->deInterlace();
456 456
 
457
-				return true;
457
+					return true;
458 458
 
459
-			case 0x3B: // EOF
460
-			default:
461
-				return false;
459
+				case 0x3B: // EOF
460
+				default:
461
+					return false;
462 462
 			}
463 463
 		}
464 464
 		return false;
@@ -475,27 +475,27 @@  discard block
 block discarded – undo
475 475
 		switch ($b)
476 476
 		{
477 477
 		// Graphic Control...
478
-		case 0xF9:
479
-			$b = ord($data[1]);
480
-			$this->m_disp   = ($b & 0x1C) >> 2;
481
-			$this->m_bUser  = ($b & 0x02) ? true : false;
482
-			$this->m_bTrans = ($b & 0x01) ? true : false;
483
-			list ($this->m_nDelay) = array_values(unpack('v', substr($data, 2, 2)));
484
-			$this->m_nTrans = ord($data[4]);
485
-			break;
486
-
487
-		// Comment...
488
-		case 0xFE:
489
-			$this->m_lpComm = substr($data, 1, ord($data[0]));
490
-			break;
491
-
492
-		// Plain text...
493
-		case 0x01:
494
-			break;
495
-
496
-		// Application...
497
-		case 0xFF:
498
-			break;
478
+			case 0xF9:
479
+				$b = ord($data[1]);
480
+				$this->m_disp   = ($b & 0x1C) >> 2;
481
+				$this->m_bUser  = ($b & 0x02) ? true : false;
482
+				$this->m_bTrans = ($b & 0x01) ? true : false;
483
+				list ($this->m_nDelay) = array_values(unpack('v', substr($data, 2, 2)));
484
+				$this->m_nTrans = ord($data[4]);
485
+				break;
486
+
487
+			// Comment...
488
+			case 0xFE:
489
+				$this->m_lpComm = substr($data, 1, ord($data[0]));
490
+				break;
491
+
492
+			// Plain text...
493
+			case 0x01:
494
+				break;
495
+
496
+			// Application...
497
+			case 0xFF:
498
+				break;
499 499
 		}
500 500
 
501 501
 		// Skip default as defs may change.
@@ -521,25 +521,25 @@  discard block
 block discarded – undo
521 521
 		{
522 522
 			switch ($i)
523 523
 			{
524
-			case 0:
525
-				$s = 8;
526
-				$y = 0;
527
-				break;
528
-
529
-			case 1:
530
-				$s = 8;
531
-				$y = 4;
532
-				break;
533
-
534
-			case 2:
535
-				$s = 4;
536
-				$y = 2;
537
-				break;
538
-
539
-			case 3:
540
-				$s = 2;
541
-				$y = 1;
542
-				break;
524
+				case 0:
525
+					$s = 8;
526
+					$y = 0;
527
+					break;
528
+
529
+				case 1:
530
+					$s = 8;
531
+					$y = 4;
532
+					break;
533
+
534
+				case 2:
535
+					$s = 4;
536
+					$y = 2;
537
+					break;
538
+
539
+				case 3:
540
+					$s = 2;
541
+					$y = 1;
542
+					break;
543 543
 			}
544 544
 
545 545
 			for (; $y < $this->m_gih->m_nHeight; $y += $s)
Please login to merge, or discard this patch.
Sources/Class-SearchAPI.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * @param array $wordsSearch Search words
57 57
 	 * @param array $wordsExclude Words to exclude
58 58
 	 * @param bool $isExcluded Whether the specfied word should be excluded
59
+	 * @return void
59 60
 	 */
60 61
 	public function prepareIndexes($word, array &$wordsSearch, array &$wordsExclude, $isExcluded);
61 62
 
@@ -130,7 +131,7 @@  discard block
 block discarded – undo
130 131
 	 * @param array $excludedIndexWords Indexed words that should be excluded
131 132
 	 * @param array $participants
132 133
 	 * @param array $searchArray
133
-	 * @return mixed
134
+	 * @return integer
134 135
 	 */
135 136
 	public function searchQuery(array $query_params, array $searchWords, array $excludedIndexWords, array $participants, array $searchArray);
136 137
 }
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-postgresql.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@
 block discarded – undo
518 518
  * @param array $parameters Not used?
519 519
  * @param string $if_exists What to do if the index exists. If 'update', the definition will be updated.
520 520
  * @param string $error
521
- * @return boolean Whether or not the operation was successful
521
+ * @return false|null Whether or not the operation was successful
522 522
  */
523 523
 function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_exists = 'update', $error = 'fatal')
524 524
 {
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
 {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
  * Uses the showpmdraft template
664 664
  * Allows for the deleting and loading/editing of drafts
665 665
  *
666
- * @param type $memID
666
+ * @param integer $memID
667 667
  */
668 668
 function showPMDrafts($memID = -1)
669 669
 {
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
@@ -474,7 +474,7 @@
 block discarded – undo
474 474
  * Used by fatal_error(), fatal_lang_error()
475 475
  *
476 476
  * @param string $error The error
477
- * @param array $sprintf An array of data to be sprintf()'d into the specified message
477
+ * @param boolean $sprintf An array of data to be sprintf()'d into the specified message
478 478
  */
479 479
 function log_error_online($error, $sprintf = array())
480 480
 {
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.