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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.