PHPCSStandards / PHPCSExtra

A collection of code standards for use with PHP_CodeSniffer
GNU Lesser General Public License v3.0
90 stars 8 forks source link

Add the unneeded ternary sniff #157

Open dingo-d opened 1 year ago

dingo-d commented 1 year ago

Is your feature request related to a problem?

A sniff creation was underway here: https://github.com/WordPress/WordPress-Coding-Standards/pull/1771 but it makes no sense to have it in WPCS.

I'll create a PR for this with all the comments in the original PR addressed (add additional test cases).

jrfnl commented 1 year ago

I'd welcome such a PR 🙏🏻