Ticket #62112: phpcs-fixes.patch
| File phpcs-fixes.patch, 2.5 KB (added by , 16 months ago) |
|---|
-
wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
23 23 24 24 /** 25 25 * 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. 26 30 */ 27 31 public static function get_svg( $group, $icon, $size ) { 28 32 if ( 'ui' === $group ) { … … 44 48 45 49 /** 46 50 * 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. 47 54 */ 48 55 public static function get_social_link_svg( $uri, $size ) { 49 56 static $regex_map; // Only compute regex map once, for performance. … … 454 461 </svg>', 455 462 456 463 ); 457 458 464 } -
wp-content/themes/twentynineteen/header.php
10 10 * @subpackage Twenty_Nineteen 11 11 * @since Twenty Nineteen 1.0 12 12 */ 13 13 14 ?><!doctype html> 14 15 <html <?php language_attributes(); ?>> 15 16 <head> -
wp-content/themes/twentynineteen/inc/helper-functions.php
31 31 /** 32 32 * Returns true if comment is by author of the post. 33 33 * 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 * 34 38 * @see get_comment_class() 35 39 */ 36 40 function twentynineteen_is_comment_by_post_author( $comment = null ) { … … 83 87 84 88 /** 85 89 * 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. 86 95 */ 87 96 function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) { 88 97