Making WordPress.org

Opened 2 years ago

Closed 2 years ago

#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 2 years ago.

Download all attachments as: .zip

Change History (2)

@upadalavipul
2 years ago

#1 @Otto42
2 years 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.