Make WordPress Core


Ignore:
Timestamp:
02/07/2020 07:14:29 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Adjust coding standards to always omit parentheses for include/require statements.

These are language constructs, not function calls, so the parentheses are unnecessary.

This updates the PHPCS configuration file the enforce the sniff until it is moved from the WordPress-Extra ruleset to the WordPress-Core ruleset upstream.

Follow-up to [47198].

Props desrosj, jrf, GaryJ.
Fixes #49376.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/translation-install.php

    r47198 r47207  
    2222
    2323    if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) {
    24         return  new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
     24        return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
    2525    }
    2626
Note: See TracChangeset for help on using the changeset viewer.