Re:Calling PHP functions with named parameters
by beezee on Sunday July 01, 2012 @03:00PM
(#4185756)
Sad is definitely overkill here, especially for such a short snippet, but personally I prefer avoiding nested conditionals and else statements in general. Here's a fork that keeps conditional clauses to one line, and I personally find much more readable - https://gist.github.com/3029246
(disclaimer- not tested at all)