Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-content/themes/twentyeleven/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
  * @since Twenty Eleven 1.0
388 388
  *
389 389
  * @param string $more The Read More text.
390
- * @return The filtered Read More text.
390
+ * @return string filtered Read More text.
391 391
  */
392 392
 function twentyeleven_auto_excerpt_more( $more ) {
393 393
 	if ( ! is_admin() ) {
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
  *
541 541
  * @since Twenty Eleven 1.0
542 542
  *
543
- * @return string|bool URL or false when no link is present.
543
+ * @return false|string URL or false when no link is present.
544 544
  */
545 545
 function twentyeleven_url_grabber() {
546 546
 	if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) )
Please login to merge, or discard this patch.
src/wp-includes/canonical.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -503,7 +503,7 @@
 block discarded – undo
503 503
  * @access private
504 504
  *
505 505
  * @param string $query_string
506
- * @param array $args_to_check
506
+ * @param string[] $args_to_check
507 507
  * @param string $url
508 508
  * @return string The altered query string
509 509
  */
Please login to merge, or discard this patch.
src/wp-includes/class-phpass.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
 		self::__construct( $iteration_count_log2, $portable_hashes );
63 63
 	}
64 64
 
65
+	/**
66
+	 * @param integer $count
67
+	 */
65 68
 	function get_random_bytes($count)
66 69
 	{
67 70
 		$output = '';
@@ -85,6 +88,9 @@  discard block
 block discarded – undo
85 88
 		return $output;
86 89
 	}
87 90
 
91
+	/**
92
+	 * @param integer $count
93
+	 */
88 94
 	function encode64($input, $count)
89 95
 	{
90 96
 		$output = '';
@@ -108,6 +114,9 @@  discard block
 block discarded – undo
108 114
 		return $output;
109 115
 	}
110 116
 
117
+	/**
118
+	 * @param string $input
119
+	 */
111 120
 	function gensalt_private($input)
112 121
 	{
113 122
 		$output = '$P$';
@@ -163,6 +172,9 @@  discard block
 block discarded – undo
163 172
 		return $output;
164 173
 	}
165 174
 
175
+	/**
176
+	 * @param string $input
177
+	 */
166 178
 	function gensalt_extended($input)
167 179
 	{
168 180
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -181,6 +193,9 @@  discard block
 block discarded – undo
181 193
 		return $output;
182 194
 	}
183 195
 
196
+	/**
197
+	 * @param string $input
198
+	 */
184 199
 	function gensalt_blowfish($input)
185 200
 	{
186 201
 		# This one needs to use a different order of characters and a
@@ -222,6 +237,9 @@  discard block
 block discarded – undo
222 237
 		return $output;
223 238
 	}
224 239
 
240
+	/**
241
+	 * @param string $password
242
+	 */
225 243
 	function HashPassword($password)
226 244
 	{
227 245
 		if ( strlen( $password ) > 4096 ) {
Please login to merge, or discard this patch.
src/wp-includes/class-pop3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -626,6 +626,9 @@
 block discarded – undo
626 626
         }
627 627
     }
628 628
 
629
+    /**
630
+     * @param string $server_text
631
+     */
629 632
     function parse_banner ( $server_text ) {
630 633
         $outside = true;
631 634
         $banner = "";
Please login to merge, or discard this patch.
src/wp-includes/class-snoopy.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -781,6 +781,9 @@  discard block
 block discarded – undo
781 781
 	Output:
782 782
 \*======================================================================*/
783 783
 
784
+	/**
785
+	 * @param string $http_method
786
+	 */
784 787
 	function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="")
785 788
 	{
786 789
 		$cookie_headers = '';
@@ -944,6 +947,9 @@  discard block
 block discarded – undo
944 947
 	Output:
945 948
 \*======================================================================*/
946 949
 
950
+	/**
951
+	 * @param string $http_method
952
+	 */
947 953
 	function _httpsrequest($url,$URI,$http_method,$content_type="",$body="")
948 954
 	{
949 955
 		if($this->passcookies && $this->_redirectaddr)
@@ -1189,6 +1195,10 @@  discard block
 block discarded – undo
1189 1195
 	Output:		post body
1190 1196
 \*======================================================================*/
1191 1197
 
1198
+	/**
1199
+	 * @param string $formvars
1200
+	 * @param string $formfiles
1201
+	 */
1192 1202
 	function _prepare_post_body($formvars, $formfiles)
1193 1203
 	{
1194 1204
 		settype($formvars, "array");
Please login to merge, or discard this patch.
src/wp-includes/class-wp-image-editor-gd.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	 *
136 136
 	 * @param int $width
137 137
 	 * @param int $height
138
-	 * @return true
138
+	 * @return boolean
139 139
 	 */
140 140
 	protected function update_size( $width = false, $height = false ) {
141 141
 		if ( ! $width )
Please login to merge, or discard this patch.
src/wp-includes/class-wp-image-editor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 *
198 198
 	 * @param int $width
199 199
 	 * @param int $height
200
-	 * @return true
200
+	 * @return boolean
201 201
 	 */
202 202
 	protected function update_size( $width = null, $height = null ) {
203 203
 		$this->size = array(
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 	 * @since 4.0.0
214 214
 	 * @access public
215 215
 	 *
216
-	 * @return int $quality Compression Quality. Range: [1,100]
216
+	 * @return boolean $quality Compression Quality. Range: [1,100]
217 217
 	 */
218 218
 	public function get_quality() {
219 219
 		if ( ! $this->quality ) {
Please login to merge, or discard this patch.
src/wp-includes/feed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -524,7 +524,7 @@
 block discarded – undo
524 524
  * @since 2.5.0
525 525
  *
526 526
  * @param string $data Input string
527
- * @return array array(type, value)
527
+ * @return string[] array(type, value)
528 528
  */
529 529
 function prep_atom_text_construct($data) {
530 530
 	if (strpos($data, '<') === false && strpos($data, '&') === false) {
Please login to merge, or discard this patch.
src/wp-includes/ID3/getid3.lib.php 1 patch
Doc Comments   +59 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
 	}
100 100
 
101 101
 
102
+	/**
103
+	 * @param string $binarynumerator
104
+	 */
102 105
 	public static function DecimalBinary2Float($binarynumerator) {
103 106
 		$numerator   = self::Bin2Dec($binarynumerator);
104 107
 		$denominator = self::Bin2Dec('1'.str_repeat('0', strlen($binarynumerator)));
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
 	}
107 110
 
108 111
 
112
+	/**
113
+	 * @param string $binarypointnumber
114
+	 */
109 115
 	public static function NormalizeBinaryPoint($binarypointnumber, $maxbits=52) {
110 116
 		// http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/binary.html
111 117
 		if (strpos($binarypointnumber, '.') === false) {
@@ -177,6 +183,9 @@  discard block
 block discarded – undo
177 183
 	}
178 184
 
179 185
 
186
+	/**
187
+	 * @param string $byteword
188
+	 */
180 189
 	public static function LittleEndian2Float($byteword) {
181 190
 		return self::BigEndian2Float(strrev($byteword));
182 191
 	}
@@ -366,6 +375,9 @@  discard block
 block discarded – undo
366 375
 	}
367 376
 
368 377
 
378
+	/**
379
+	 * @param integer $number
380
+	 */
369 381
 	public static function LittleEndian2String($number, $minbytes=1, $synchsafe=false) {
370 382
 		$intstring = '';
371 383
 		while ($number > 0) {
@@ -458,16 +470,25 @@  discard block
 block discarded – undo
458 470
 	}
459 471
 
460 472
 
473
+	/**
474
+	 * @param string $rawdata
475
+	 */
461 476
 	public static function FixedPoint8_8($rawdata) {
462 477
 		return self::BigEndian2Int(substr($rawdata, 0, 1)) + (float) (self::BigEndian2Int(substr($rawdata, 1, 1)) / pow(2, 8));
463 478
 	}
464 479
 
465 480
 
481
+	/**
482
+	 * @param string $rawdata
483
+	 */
466 484
 	public static function FixedPoint16_16($rawdata) {
467 485
 		return self::BigEndian2Int(substr($rawdata, 0, 2)) + (float) (self::BigEndian2Int(substr($rawdata, 2, 2)) / pow(2, 16));
468 486
 	}
469 487
 
470 488
 
489
+	/**
490
+	 * @param string $rawdata
491
+	 */
471 492
 	public static function FixedPoint2_30($rawdata) {
472 493
 		$binarystring = self::BigEndian2Bin($rawdata);
473 494
 		return self::Bin2Dec(substr($binarystring, 0, 2)) + (float) (self::Bin2Dec(substr($binarystring, 2, 30)) / pow(2, 30));
@@ -531,6 +552,9 @@  discard block
 block discarded – undo
531 552
 		return false;
532 553
 	}
533 554
 
555
+	/**
556
+	 * @param SimpleXMLElement $XMLobject
557
+	 */
534 558
 	public static function SimpleXMLelement2array($XMLobject) {
535 559
 		if (!is_object($XMLobject) && !is_array($XMLobject)) {
536 560
 			return $XMLobject;
@@ -631,6 +655,9 @@  discard block
 block discarded – undo
631 655
 		return $result;
632 656
 	}
633 657
 
658
+	/**
659
+	 * @param string $filename_dest
660
+	 */
634 661
 	public static function CopyFileParts($filename_source, $filename_dest, $offset, $length) {
635 662
 		if (!self::intValueSupported($offset + $length)) {
636 663
 			throw new Exception('cannot copy file portion, it extends beyond the '.round(PHP_INT_MAX / 1073741824).'GB limit');
@@ -863,6 +890,10 @@  discard block
 block discarded – undo
863 890
 	}
864 891
 
865 892
 	// UTF-16BE => UTF-8
893
+
894
+	/**
895
+	 * @param string $string
896
+	 */
866 897
 	public static function iconv_fallback_utf16be_utf8($string) {
867 898
 		if (substr($string, 0, 2) == "\xFE\xFF") {
868 899
 			// strip BOM
@@ -877,6 +908,10 @@  discard block
 block discarded – undo
877 908
 	}
878 909
 
879 910
 	// UTF-16LE => UTF-8
911
+
912
+	/**
913
+	 * @param string $string
914
+	 */
880 915
 	public static function iconv_fallback_utf16le_utf8($string) {
881 916
 		if (substr($string, 0, 2) == "\xFF\xFE") {
882 917
 			// strip BOM
@@ -891,6 +926,10 @@  discard block
 block discarded – undo
891 926
 	}
892 927
 
893 928
 	// UTF-16BE => ISO-8859-1
929
+
930
+	/**
931
+	 * @param string $string
932
+	 */
894 933
 	public static function iconv_fallback_utf16be_iso88591($string) {
895 934
 		if (substr($string, 0, 2) == "\xFE\xFF") {
896 935
 			// strip BOM
@@ -905,6 +944,10 @@  discard block
 block discarded – undo
905 944
 	}
906 945
 
907 946
 	// UTF-16LE => ISO-8859-1
947
+
948
+	/**
949
+	 * @param string $string
950
+	 */
908 951
 	public static function iconv_fallback_utf16le_iso88591($string) {
909 952
 		if (substr($string, 0, 2) == "\xFF\xFE") {
910 953
 			// strip BOM
@@ -940,6 +983,9 @@  discard block
 block discarded – undo
940 983
 		return $string;
941 984
 	}
942 985
 
986
+	/**
987
+	 * @return string
988
+	 */
943 989
 	public static function iconv_fallback($in_charset, $out_charset, $string) {
944 990
 
945 991
 		if ($in_charset == $out_charset) {
@@ -1271,6 +1317,12 @@  discard block
 block discarded – undo
1271 1317
 	}
1272 1318
 
1273 1319
 
1320
+	/**
1321
+	 * @param integer $begin
1322
+	 * @param integer $end
1323
+	 * @param string $file
1324
+	 * @param string $name
1325
+	 */
1274 1326
 	public static function EmbeddedLookup($key, $begin, $end, $file, $name) {
1275 1327
 
1276 1328
 		// Cached
@@ -1317,6 +1369,10 @@  discard block
 block discarded – undo
1317 1369
 		return (isset($cache[$file][$name][$key]) ? $cache[$file][$name][$key] : '');
1318 1370
 	}
1319 1371
 
1372
+	/**
1373
+	 * @param string $filename
1374
+	 * @param string $sourcefile
1375
+	 */
1320 1376
 	public static function IncludeDependency($filename, $sourcefile, $DieOnFailure=false) {
1321 1377
 		global $GETID3_ERRORARRAY;
1322 1378
 
@@ -1341,6 +1397,9 @@  discard block
 block discarded – undo
1341 1397
 		return trim($string, "\x00");
1342 1398
 	}
1343 1399
 
1400
+	/**
1401
+	 * @param string $path
1402
+	 */
1344 1403
 	public static function getFileSizeSyscall($path) {
1345 1404
 		$filesize = false;
1346 1405
 
Please login to merge, or discard this patch.