[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards
WordPress Trac
noreply at wordpress.org
Tue Nov 28 04:23:13 UTC 2017
#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
Reporter: netweb | Owner: pento
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: early commit | Focuses:
----------------------------+-----------------------
Comment (by pento):
In [changeset:"42249"]:
{{{
#!CommitTicketReference repository="" revision="42249"
General: Add inline PHPCS options to leave regex indentation.
We have a handful of super long regexen that are written over multiple
lines, as a collection of strings concatenated together. Each string is
indented appropriately for the regex, but PHPCS doesn't recognised this,
so defaults to removing the extra whitespace.
Disabling the `Squiz.Strings.ConcatenationSpacing.PaddingFound` rule for
these blocks stops the extra whitespace from being removed.
See #41057.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41057#comment:101>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list