@@ -387,7 +387,7 @@ discard block |
||
| 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 |
||
| 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 ) ) |
@@ -503,7 +503,7 @@ |
||
| 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 | */ |
@@ -62,6 +62,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 ) { |
@@ -626,6 +626,9 @@ |
||
| 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 = ""; |
@@ -781,6 +781,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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"); |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | * @since 4.1.0 |
| 210 | 210 | * @access public |
| 211 | 211 | * |
| 212 | - * @return true Always true. |
|
| 212 | + * @return boolean Always true. |
|
| 213 | 213 | */ |
| 214 | 214 | public function active_callback() { |
| 215 | 215 | return true; |
@@ -135,7 +135,7 @@ |
||
| 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 ) |
@@ -197,7 +197,7 @@ discard block |
||
| 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 |
||
| 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 ) { |
@@ -524,7 +524,7 @@ |
||
| 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) { |