[wp-trac] [WordPress Trac] #24582: Why WordPress PHP spacing standards aren't compatible with PHP standards?

WordPress Trac noreply at wordpress.org
Sat Jun 15 13:23:29 UTC 2013


#24582: Why WordPress PHP spacing standards aren't compatible with PHP standards?
--------------------------+------------------------------
 Reporter:  Looimaster    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by Looimaster):

 * type:  enhancement => defect (bug)
 * severity:  trivial => normal


Comment:

 Yes, I agree that spaces should be used but like this:

 {{{
 if ((condition1) || (condition2)) {
 }}}

 and they are used like this now:

 {{{
 if ( ( condition1 ) || ( condition2 ) ) {
 }}}

 That's the only thing that is puzzling me because 95% of PHP libraries
 that I download uses the first convention.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24582#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list