visavi/rotor

View on GitHub
app/Models/Message.php

Summary

Maintainability
A
1 hr
Test Coverage

Method createDialogue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createDialogue(User $user, ?User $author, string $text, bool $withAuthor)
    {
        $authorId = $author->id ?? 0;

        $message = self::query()->create([
Severity: Minor
Found in app/Models/Message.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status