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-includes/shortcodes.php

    r47122 r47207  
    259259
    260260    // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
    261     return
    262         '\\['                                // Opening bracket.
     261    return '\\['                             // Opening bracket.
    263262        . '(\\[?)'                           // 1: Optional second opening bracket for escaping shortcodes: [[tag]].
    264263        . "($tagregexp)"                     // 2: Shortcode name.
Note: See TracChangeset for help on using the changeset viewer.