[wp-trac] [WordPress Trac] #42885: Fix PHPCS "Yoda Condition checks" for root files of WordPress Core.

WordPress Trac noreply at wordpress.org
Wed Dec 13 05:52:36 UTC 2017


#42885: Fix PHPCS "Yoda Condition checks" for root files of WordPress Core.
------------------------------+-------------------------------
 Reporter:  chetan200891      |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  General           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  coding-standards
------------------------------+-------------------------------
Changes (by netweb):

 * keywords:   => has-patch commit
 * milestone:  Awaiting Review => 5.0


Comment:

 Perfect @chetan200891, thanks for the patch 👍🏼

 In [attachment:42885.diff]

 Coding Standards: Fix Yoda conditions in `/src/*.php` files.

 * Fixes all instances of the PHPCS/WPCS `WordPress.PHP.YodaConditions`
 sniff  for the`/src/*.php` files.

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


More information about the wp-trac mailing list