RT @freekmurze@twitter.com
? In many cases avoiding `else` and using early returns will greatly improve readability of your code.
I wish somebody would have told me this sooner in my career.
Contrived example in the image. Real world example: https://github.com/spatie/laravel-responsecache/blob/0d0a5c86619215f5d59aeadf14a6cfb4b4bcfbef/src/CacheProfiles/CacheAllSuccessfulGetRequests.php#L24-L35
??: https://twitter.com/freekmurze/status/1173889415418122241