pixelfed/pixelfed

View on GitHub
app/Util/Webfinger/Webfinger.php

Summary

Maintainability
A
1 hr
Test Coverage

Method __construct has 42 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in app/Util/Webfinger/Webfinger.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status