[wp-trac] [WordPress Trac] #44028: Conditional Statements are not meeting Yoda Conditions Coding Standards

WordPress Trac noreply at wordpress.org
Wed May 9 20:29:58 UTC 2018


#44028: Conditional Statements are not meeting Yoda Conditions Coding Standards
--------------------------+-----------------------------
 Reporter:  seusmaniqbal  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 A lot of conditional statements are not meeting Yoda conditions coding
 standards. Variables are placed on the left side instead of right side.

 https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#yoda-conditions

 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
 pclzip.php#L3636

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44028>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list