Making WordPress.org

#6567 closed defect (bug) (invalid)

Use Yoda Condition As per WordPress-Core Coding Standard

Reported by: upadalavipul's profile upadalavipul Owned by:
Milestone: Priority: normal
Component: General Keywords:
Cc:

Description

I have run the PHPCS WordPress-Core Coding Standard and found the Yoda Condition Error in the /trunk/svn.wordpress.org/bin/slack-commit-hook.php file and no of code line 4.

Attachments (1)

6567.patch (391 bytes) - added by upadalavipul 20 months ago.

Download all attachments as: .zip

Change History (2)

@upadalavipul
20 months ago

#1 @Otto42
20 months ago

  • Resolution set to invalid
  • Status changed from new to closed

The use of Yoda conditions may be in the standard for Core, but it's debatable as to whether it is a good standard. We do not have such a standard for meta code at this time.

Note: See TracTickets for help on using tickets.