Currently, there's a patch under review [0] to enable a PHP sniff which would detect so called "Pointless conditionals". These are conditionals (if...else or ternary) where both branches only assign or return a boolean value, and which could potentially one-lined using the if condition. T _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
- [Wikitech-l] Code sniff for verbose conditionals Daimona
- Re: [Wikitech-l] Code sniff for verbose condition... Daimona
- Re: [Wikitech-l] Code sniff for verbose condi... Stas Malyshev
- Re: [Wikitech-l] Code sniff for verbose c... Kosta Harlan
- Re: [Wikitech-l] Code sniff for verbo... Daimona
- Re: [Wikitech-l] Code sniff for ... Bartosz DziewoĆski
- Re: [Wikitech-l] Code sniff ... Daimona
- Re: [Wikitech-l] Code sniff for ... Trey Jones
- Re: [Wikitech-l] Code sniff ... Trey Jones
- Re: [Wikitech-l] Code sniff for verbose condi... Thiemo Kreuz
