Fix various phpmd issues.

This commit is contained in:
James Cole
2023-11-26 12:50:54 +01:00
parent 846c60fb85
commit 72ead65d9c
9 changed files with 44 additions and 22 deletions

View File

@@ -520,7 +520,8 @@ class User extends Authenticatable
*/
public function routeNotificationFor($driver, $notification = null)
{
if (method_exists($this, $method = 'routeNotificationFor' . Str::studly($driver))) {
$method = 'routeNotificationFor' . Str::studly($driver);
if (method_exists($this, $method)) {
return $this->{$method}($notification); // @phpstan-ignore-line
}
$email = $this->email;