Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (4 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-admin/includes/class-wp-site-health-auto-updates.php

    r47198 r47808  
    348348        WP_Filesystem();
    349349
    350         if ( 'direct' != $wp_filesystem->method ) {
     350        if ( 'direct' !== $wp_filesystem->method ) {
    351351            return false;
    352352        }
     
    379379        $unwritable_files = array();
    380380        foreach ( array_keys( $checksums ) as $file ) {
    381             if ( 'wp-content' == substr( $file, 0, 10 ) ) {
     381            if ( 'wp-content' === substr( $file, 0, 10 ) ) {
    382382                continue;
    383383            }
Note: See TracChangeset for help on using the changeset viewer.