DEV Community

Discussion on: Use Guard Clauses for Cleaner Code

Collapse
 
cyberjack profile image
CyberJack

Nice steps to reduce the complexity and create better code. 👍

I do miss the throwing of exceptions in case something goes wrong. When you can't assign the $email variable, or the update fails, you want to know this, instead of quietly aborting the method.