Completed
Push — release-2.1 ( 28ef5a...a96192 )
by Mert
06:02
created
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/Subs.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
  * - caches the formatting data from the setting for optimization.
673 673
  *
674 674
  * @param float $number A number
675
- * @param bool|int $override_decimal_count If set, will use the specified number of decimal places. Otherwise it's automatically determined
675
+ * @param integer $override_decimal_count If set, will use the specified number of decimal places. Otherwise it's automatically determined
676 676
  * @return string A formatted number
677 677
  */
678 678
 function comma_format($number, $override_decimal_count = false)
@@ -4780,7 +4780,7 @@  discard block
 block discarded – undo
4780 4780
 
4781 4781
 /**
4782 4782
  * @param string $ip_address An IP address in IPv4, IPv6 or decimal notation
4783
- * @return binary The IP address in binary or false
4783
+ * @return string The IP address in binary or false
4784 4784
  */
4785 4785
 function inet_ptod($ip_address)
4786 4786
 {
Please login to merge, or discard this patch.