Ticket #51426: 51426-php-code-standards-1.patch
| File 51426-php-code-standards-1.patch, 4.0 KB (added by , 5 years ago) |
|---|
-
src/wp-includes/class-http.php
1076 1076 * @since 3.7.0 1077 1077 * 1078 1078 * @param string $maybe_ip A suspected IP address. 1079 * @return int eger|bool Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure1079 * @return int|bool Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure 1080 1080 */ 1081 1081 public static function is_ip_address( $maybe_ip ) { 1082 1082 if ( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $maybe_ip ) ) { -
src/wp-includes/class-json.php
932 932 * @deprecated 5.3.0 Use the PHP native JSON extension instead. 933 933 * 934 934 * @param string 935 * @return int egerlength935 * @return int length 936 936 */ 937 937 function strlen8( $str ) 938 938 { … … 950 950 * @deprecated 5.3.0 Use the PHP native JSON extension instead. 951 951 * 952 952 * @param string 953 * @param int egerstart954 * @param int egerlength955 * @return int egerlength953 * @param int start 954 * @param int length 955 * @return int length 956 956 */ 957 957 function substr8( $string, $start, $length=false ) 958 958 { -
src/wp-includes/Requests/Transport/cURL.php
432 432 * 433 433 * @param resource $handle cURL resource 434 434 * @param string $headers Header string 435 * @return int egerLength of provided header435 * @return int Length of provided header 436 436 */ 437 437 public function stream_headers($handle, $headers) { 438 438 // Why do we do this? cURL will send both the final response and any … … 457 457 * 458 458 * @param resource $handle cURL resource 459 459 * @param string $data Body data 460 * @return int egerLength of provided data460 * @return int Length of provided data 461 461 */ 462 462 public function stream_body($handle, $data) { 463 463 $this->hooks->dispatch('request.progress', array($data, $this->response_bytes, $this->response_byte_limit)); -
src/wp-includes/rest-api.php
1161 1161 * 1162 1162 * @since 4.7.0 1163 1163 * 1164 * @return int eger401 if the user is not logged in, 403 if the user is logged in.1164 * @return int 401 if the user is not logged in, 403 if the user is logged in. 1165 1165 */ 1166 1166 function rest_authorization_required_code() { 1167 1167 return is_user_logged_in() ? 403 : 401; -
src/wp-includes/Text/Diff.php
75 75 * 76 76 * @since Text_Diff 1.1.0 77 77 * 78 * @return int egerThe number of new lines78 * @return int The number of new lines 79 79 */ 80 80 function countAddedLines() 81 81 { … … 94 94 * 95 95 * @since Text_Diff 1.1.0 96 96 * 97 * @return int egerThe number of deleted lines97 * @return int The number of deleted lines 98 98 */ 99 99 function countDeletedLines() 100 100 { … … 156 156 * 157 157 * This is mostly for diagnostic purposes. 158 158 * 159 * @return int egerThe length of the LCS.159 * @return int The length of the LCS. 160 160 */ 161 161 function lcs() 162 162 { … … 210 210 * with array_walk(). 211 211 * 212 212 * @param string $line The line to trim. 213 * @param int eger$key The index of the line in the array. Not used.213 * @param int $key The index of the line in the array. Not used. 214 214 */ 215 215 static function trimNewlines(&$line, $key) 216 216 {