Make WordPress Core

Ticket #62112: phpcs-fixes.patch

File phpcs-fixes.patch, 2.5 KB (added by pitamdey, 16 months ago)

Patch for this issue

  • wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php

     
    2323
    2424        /**
    2525         * Gets the SVG code for a given icon.
     26         *
     27         * @param string $group The group of icons ('ui' or 'social').
     28         * @param string $icon The specific icon to retrieve.
     29         * @param int    $size The desired width and height for the SVG icon.
    2630         */
    2731        public static function get_svg( $group, $icon, $size ) {
    2832                if ( 'ui' === $group ) {
     
    4448
    4549        /**
    4650         * Detects the social network from a URL and returns the SVG code for its icon.
     51         *
     52         * @param string $uri The URL of the social network link.
     53         * @param int    $size The desired width and height for the SVG icon.
    4754         */
    4855        public static function get_social_link_svg( $uri, $size ) {
    4956                static $regex_map; // Only compute regex map once, for performance.
     
    454461</svg>',
    455462
    456463        );
    457 
    458464}
  • wp-content/themes/twentynineteen/header.php

     
    1010 * @subpackage Twenty_Nineteen
    1111 * @since Twenty Nineteen 1.0
    1212 */
     13
    1314?><!doctype html>
    1415<html <?php language_attributes(); ?>>
    1516<head>
  • wp-content/themes/twentynineteen/inc/helper-functions.php

     
    3131/**
    3232 * Returns true if comment is by author of the post.
    3333 *
     34 * @param WP_Comment|null $comment The comment object to check. If null, the current comment is used.
     35 *
     36 * @return bool True if the comment is by the author of the post, false otherwise.
     37 *
    3438 * @see get_comment_class()
    3539 */
    3640function twentynineteen_is_comment_by_post_author( $comment = null ) {
     
    8387
    8488/**
    8589 * Converts HSL to HEX colors.
     90 *
     91 * @param float $h The hue component (0-360).
     92 * @param float $s The saturation component (0-100).
     93 * @param float $l The lightness component (0-100).
     94 * @param bool  $to_hex Whether to convert to HEX format. Defaults to true.
    8695 */
    8796function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
    8897