@@ -647,7 +647,7 @@ public function head( $url, $args = array() ) {
647647 * @param string $strResponse The full response string
648648 * @return array Array with 'headers' and 'body' keys.
649649 */
650- public static function processResponse ( $ strResponse ) {
650+ public static function processResponse ( $ strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
651651 $ res = explode ( "\r\n\r\n" , $ strResponse , 2 );
652652
653653 return array (
@@ -669,7 +669,7 @@ public static function processResponse( $strResponse ) {
669669 * @return array Processed string headers. If duplicate headers are encountered,
670670 * Then a numbered array is returned as the value of that header-key.
671671 */
672- public static function processHeaders ( $ headers , $ url = '' ) {
672+ public static function processHeaders ( $ headers , $ url = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
673673 // Split headers, one per array element.
674674 if ( is_string ( $ headers ) ) {
675675 // Tolerate line terminator: CRLF = LF (RFC 2616 19.3).
@@ -752,7 +752,7 @@ public static function processHeaders( $headers, $url = '' ) {
752752 *
753753 * @param array $r Full array of args passed into ::request()
754754 */
755- public static function buildCookieHeader ( &$ r ) {
755+ public static function buildCookieHeader ( &$ r ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
756756 if ( ! empty ( $ r ['cookies ' ] ) ) {
757757 // Upgrade any name => value cookie pairs to WP_HTTP_Cookie instances.
758758 foreach ( $ r ['cookies ' ] as $ name => $ value ) {
@@ -788,7 +788,7 @@ public static function buildCookieHeader( &$r ) {
788788 * @param string $body Body content
789789 * @return string Chunked decoded body on success or raw body on failure.
790790 */
791- public static function chunkTransferDecode ( $ body ) {
791+ public static function chunkTransferDecode ( $ body ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
792792 // The body is not chunked encoded or is malformed.
793793 if ( ! preg_match ( '/^([0-9a-f]+)[^\r\n]*\r\n/i ' , trim ( $ body ) ) ) {
794794 return $ body ;
0 commit comments