app/Util/Webfinger/Webfinger.php
Method __construct
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($user)
{
$avatar = $user ? $user->avatarUrl() : url('/storage/avatars/default.jpg');
$avatarPath = parse_url($avatar, PHP_URL_PATH);
$extension = pathinfo($avatarPath, PATHINFO_EXTENSION);