slimphp / Slim-Skeleton

Slim Framework 4 Skeleton Application
http://www.slimframework.com
MIT License
1.59k stars 479 forks source link

Little refactor using early return #303

Closed joubertredrat closed 1 year ago

joubertredrat commented 1 year ago

Hi guys, thanks for this awesome micro framework.

I made this little refactor using early return to reduce cyclomatic complexity in this class. In my personal project I made unit test for this class, if you want too, feel free to talk me that I provide a test here too.