pixelfed/pixelfed

View on GitHub
app/Http/Resources/StatusStateless.php

Summary

Maintainability
A
1 hr
Test Coverage

Method toArray has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function toArray($request)
    {
        $status = $this;
        $taggedPeople = MediaTagService::get($status->id);
        $poll = $status->type === 'poll' ? PollService::get($status->id) : null;
Severity: Minor
Found in app/Http/Resources/StatusStateless.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status