[wp-trac] [WordPress Trac] #49376: Adjust coding standards to always omit parenthesis for include/require statements
WordPress Trac
noreply at wordpress.org
Fri Feb 7 19:14:42 UTC 2020
#49376: Adjust coding standards to always omit parenthesis for include/require
statements
------------------------------+-------------------------------
Reporter: desrosj | Owner: SergeyBiryukov
Type: task (blessed) | Status: closed
Priority: low | Milestone: 5.4
Component: General | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch commit | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47207" 47207]:
{{{
#!CommitTicketReference repository="" revision="47207"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49376#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list