[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards
WordPress Trac
noreply at wordpress.org
Mon Sep 4 07:15:01 UTC 2017
#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
Reporter: netweb | Owner: pento
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 4.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+-----------------------
Comment (by dingo_bastard):
> Array elements aren't aligning at the `=>`. It's mentioned (and shown in
the examples) in the Handbook, but I can make that more explicit if
necessary.
Handbook says
> Exception: if you have a block of code that would be more readable if
things are aligned, use spaces:
While I do agree that it helps with readability (I do it myself while
coding), I don't think that it would mean much if we cannot automatically
fix it with `phpcbf`, no? I definitely wouldn't put it as a requirement,
but a recommendation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41057#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list