pixelfed/pixelfed

View on GitHub
app/Transformer/Api/StatusTransformer.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method transform has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function transform(Status $status)
    {
        $pid = request()->user()->profile_id;
        $taggedPeople = MediaTagService::get($status->id);
        $poll = $status->type === 'poll' ? PollService::get($status->id, $pid) : null;
Severity: Major
Found in app/Transformer/Api/StatusTransformer.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status