Please apply the concept of Dependency Injection to the `rankEvangelist` function too. `if (empty($username)) { throw new NullUserException(); }` should not be in the try and catch block because you actually want to throw the error to the developer
Please apply the concept of Dependency Injection to the
rankEvangelistfunction too.if (empty($username)) { throw new NullUserException(); }should not be in the try and catch block because you actually want to throw the error to the developer