[wp-trac] [WordPress Trac] #61431: Remove Extra spaces

WordPress Trac noreply at wordpress.org
Thu Jun 13 18:23:34 UTC 2024


#61431: Remove Extra spaces
--------------------------+----------------------
 Reporter:  dhruval04     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+----------------------
Changes (by sabernhardt):

 * keywords:  has-patch dev-feedback => has-patch
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Thanks! Those docs are good as they are.

 The [https://developer.wordpress.org/coding-standards/inline-
 documentation-standards/php/#1-functions-class-methods handbook page]
 mentions aligning multiple globals according to "type, variable, and
 description, with each other as a group." I did not find it saying the
 same about parameters, but that is how they should align.

 Examples:
 - [https://core.trac.wordpress.org/changeset/57687/trunk/src/wp-
 includes/post.php Changeset 57687] added spaces before the description for
 `$mime` so it would line up with the description for `$preferred_ext`.
 - Changesets such as [58220] and [58224] added spaces to align the
 variable names when one of the types became longer.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61431#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list