Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where static strings are involved.

This reduces the number of WordPress.PHP.StrictComparisons.LooseComparison issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php

    r47122 r47808  
    2626         */
    2727        public static function get_svg( $group, $icon, $size ) {
    28                 if ( 'ui' == $group ) {
     28                if ( 'ui' === $group ) {
    2929                        $arr = self::$ui_icons;
    30                 } elseif ( 'social' == $group ) {
     30                } elseif ( 'social' === $group ) {
    3131                        $arr = self::$social_icons;
    3232                } else {
Note: See TracChangeset for help on using the changeset viewer.