[wp-trac] [WordPress Trac] #43763: Auto-fixable CS violations in Core
WordPress Trac
noreply at wordpress.org
Fri Apr 13 22:36:55 UTC 2018
#43763: Auto-fixable CS violations in Core
--------------------------+-------------------------------
Reporter: tfrommen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
--------------------------+-------------------------------
Comment (by jrf):
LGTM.
Just FYI: The first one (in `src/wp-includes/widgets/class-wp-widget-
media.php`) can also be fixed by adding a new line before that line
instead of making the assignment operators line up. For large arrays with
assignment lines after them, that is sometimes a "cleaner" solution.
Up to you what makes the most sense in this situation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43763#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list