Can you please refactor the total_likes() method which is located on the Settings controller? There's multiple return statement in the catch block which would never run. The return statement means, the code ends and whatever code you put after the return statement, it would never run.
Can you please refactor the
total_likes()
method which is located on theSettings
controller? There's multiplereturn
statement in thecatch
block which would never run. Thereturn
statement means, the code ends and whatever code you put after thereturn
statement, it would never run.https://github.com/vardump/optimus/blob/master/app/Http/Controllers/Settings.php#L348