Make WordPress Core


Ignore:
Timestamp:
07/01/2019 08:00:12 AM (7 years ago)
Author:
pento
Message:

Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.

See #47632

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r45504 r45580  
    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
     
    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 ) ) {
     
    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.
     
    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 ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.