pixelfed/pixelfed

View on GitHub
app/Http/Controllers/Api/InstanceApiController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getData has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getData()
    {
        $contact = Cache::remember('api:v1:instance:contact', now()->addMinutes(1440), function() {
            $admin = User::whereIsAdmin(true)->first()->profile;
            return [
Severity: Minor
Found in app/Http/Controllers/Api/InstanceApiController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status