mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.
See #47632 git-svn-id: https://develop.svn.wordpress.org/trunk@45580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -647,7 +647,7 @@ class WP_Http {
|
||||
* @param string $strResponse The full response string
|
||||
* @return array Array with 'headers' and 'body' keys.
|
||||
*/
|
||||
public static function processResponse( $strResponse ) {
|
||||
public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
$res = explode( "\r\n\r\n", $strResponse, 2 );
|
||||
|
||||
return array(
|
||||
@@ -669,7 +669,7 @@ class WP_Http {
|
||||
* @return array Processed string headers. If duplicate headers are encountered,
|
||||
* Then a numbered array is returned as the value of that header-key.
|
||||
*/
|
||||
public static function processHeaders( $headers, $url = '' ) {
|
||||
public static function processHeaders( $headers, $url = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
// Split headers, one per array element.
|
||||
if ( is_string( $headers ) ) {
|
||||
// Tolerate line terminator: CRLF = LF (RFC 2616 19.3).
|
||||
@@ -752,7 +752,7 @@ class WP_Http {
|
||||
*
|
||||
* @param array $r Full array of args passed into ::request()
|
||||
*/
|
||||
public static function buildCookieHeader( &$r ) {
|
||||
public static function buildCookieHeader( &$r ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
if ( ! empty( $r['cookies'] ) ) {
|
||||
// Upgrade any name => value cookie pairs to WP_HTTP_Cookie instances.
|
||||
foreach ( $r['cookies'] as $name => $value ) {
|
||||
@@ -788,7 +788,7 @@ class WP_Http {
|
||||
* @param string $body Body content
|
||||
* @return string Chunked decoded body on success or raw body on failure.
|
||||
*/
|
||||
public static function chunkTransferDecode( $body ) {
|
||||
public static function chunkTransferDecode( $body ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
// The body is not chunked encoded or is malformed.
|
||||
if ( ! preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', trim( $body ) ) ) {
|
||||
return $body;
|
||||
|
||||
Reference in New Issue
Block a user