Completed
Push — release-2.1 ( dacf2a...74ad50 )
by Mert
13:42
created
other/install.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -1698,6 +1698,9 @@  discard block
 block discarded – undo
1698 1698
 		return true;
1699 1699
 	}
1700 1700
 
1701
+	/**
1702
+	 * @param integer $chmod
1703
+	 */
1701 1704
 	function chmod($ftp_file, $chmod)
1702 1705
 	{
1703 1706
 		if (!is_resource($this->connection))
@@ -1714,6 +1717,9 @@  discard block
 block discarded – undo
1714 1717
 		return true;
1715 1718
 	}
1716 1719
 
1720
+	/**
1721
+	 * @param string $ftp_file
1722
+	 */
1717 1723
 	function unlink($ftp_file)
1718 1724
 	{
1719 1725
 		// We are actually connected, right?
@@ -1782,6 +1788,9 @@  discard block
 block discarded – undo
1782 1788
 		return true;
1783 1789
 	}
1784 1790
 
1791
+	/**
1792
+	 * @param string $ftp_file
1793
+	 */
1785 1794
 	function create_file($ftp_file)
1786 1795
 	{
1787 1796
 		// First, we have to be connected... very important.
@@ -1853,6 +1862,10 @@  discard block
 block discarded – undo
1853 1862
 		return $data;
1854 1863
 	}
1855 1864
 
1865
+	/**
1866
+	 * @param string $file
1867
+	 * @param false|string $listing
1868
+	 */
1856 1869
 	function locate($file, $listing = null)
1857 1870
 	{
1858 1871
 		if ($listing === null)
Please login to merge, or discard this patch.
other/upgrade.php 1 patch
Doc Comments   +31 added lines patch added patch discarded remove patch
@@ -210,6 +210,9 @@  discard block
 block discarded – undo
210 210
 // MD5 Encryption.
211 211
 if (!function_exists('md5_hmac'))
212 212
 {
213
+	/**
214
+	 * @param string $key
215
+	 */
213 216
 	function md5_hmac($data, $key)
214 217
 	{
215 218
 		if (strlen($key) > 64)
@@ -298,6 +301,9 @@  discard block
 block discarded – undo
298 301
 			return true;
299 302
 		}
300 303
 
304
+		/**
305
+		 * @param integer $chmod
306
+		 */
301 307
 		function chmod($ftp_file, $chmod)
302 308
 		{
303 309
 			if (!is_resource($this->connection))
@@ -314,6 +320,9 @@  discard block
 block discarded – undo
314 320
 			return true;
315 321
 		}
316 322
 
323
+		/**
324
+		 * @param string $ftp_file
325
+		 */
317 326
 		function unlink($ftp_file)
318 327
 		{
319 328
 			// We are actually connected, right?
@@ -382,6 +391,9 @@  discard block
 block discarded – undo
382 391
 			return true;
383 392
 		}
384 393
 
394
+		/**
395
+		 * @param string $ftp_file
396
+		 */
385 397
 		function create_file($ftp_file)
386 398
 		{
387 399
 			// First, we have to be connected... very important.
@@ -453,6 +465,10 @@  discard block
 block discarded – undo
453 465
 			return $data;
454 466
 		}
455 467
 
468
+		/**
469
+		 * @param string $file
470
+		 * @param false|string $listing
471
+		 */
456 472
 		function locate($file, $listing = null)
457 473
 		{
458 474
 			if ($listing === null)
@@ -761,6 +777,9 @@  discard block
 block discarded – undo
761 777
 }
762 778
 
763 779
 // Used to direct the user to another location.
780
+/**
781
+ * @param string $location
782
+ */
764 783
 function redirectLocation($location, $addForm = true)
765 784
 {
766 785
 	global $upgradeurl, $upcontext, $command_line;
@@ -2438,6 +2457,9 @@  discard block
 block discarded – undo
2438 2457
 	return addslashes(preg_replace(array('~^\.([/\\\]|$)~', '~[/]+~', '~[\\\]+~', '~[/\\\]$~'), array($install_path . '$1', '/', '\\', ''), $path));
2439 2458
 }
2440 2459
 
2460
+/**
2461
+ * @param string $filename
2462
+ */
2441 2463
 function parse_sql($filename)
2442 2464
 {
2443 2465
 	global $db_prefix, $db_collation, $boarddir, $boardurl, $command_line, $file_steps, $step_progress, $custom_warning;
@@ -2724,6 +2746,9 @@  discard block
 block discarded – undo
2724 2746
 	return true;
2725 2747
 }
2726 2748
 
2749
+/**
2750
+ * @param string $string
2751
+ */
2727 2752
 function upgrade_query($string, $unbuffered = false)
2728 2753
 {
2729 2754
 	global $db_connection, $db_server, $db_user, $db_passwd, $db_type, $command_line, $upcontext, $upgradeurl, $modSettings;
@@ -3350,6 +3375,9 @@  discard block
 block discarded – undo
3350 3375
 	$upcontext['current_step'] = 1;
3351 3376
 }
3352 3377
 
3378
+/**
3379
+ * @param string $message
3380
+ */
3353 3381
 function print_error($message, $fatal = false)
3354 3382
 {
3355 3383
 	static $fp = null;
@@ -3363,6 +3391,9 @@  discard block
 block discarded – undo
3363 3391
 		exit;
3364 3392
 }
3365 3393
 
3394
+/**
3395
+ * @param string $message
3396
+ */
3366 3397
 function throw_error($message)
3367 3398
 {
3368 3399
 	global $upcontext;
Please login to merge, or discard this patch.
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 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-Package.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 * of elements, an array of xmlArray's is returned for use with foreach.
258 258
 	 * Example use:
259 259
 	 *  foreach ($xml->set('html/body/p') as $p)
260
-	 * @param $path string The path to search for.
260
+	 * @param string $path string The path to search for.
261 261
 	 * @return array An array of xmlArray objects
262 262
 	 */
263 263
 	public function set($path)
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
 	 *
1001 1001
 	 * @param string $ftp_path The path to the directory
1002 1002
 	 * @param bool $search Whether or not to get a recursive directory listing
1003
-	 * @return string|boolean The results of the command or false if unsuccessful
1003
+	 * @return false|string The results of the command or false if unsuccessful
1004 1004
 	 */
1005 1005
 	public function list_dir($ftp_path = '', $search = false)
1006 1006
 	{
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
 	 *
1046 1046
 	 * @param string $file The name of a file
1047 1047
 	 * @param string $listing A directory listing or null to generate one
1048
-	 * @return string|boolean The name of the file or false if it wasn't found
1048
+	 * @return string|false The name of the file or false if it wasn't found
1049 1049
 	 */
1050 1050
 	public function locate($file, $listing = null)
1051 1051
 	{
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-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/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.