fisharebest/webtrees

View on GitHub
app/Services/MessageService.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method deliverMessage has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function deliverMessage(UserInterface $sender, UserInterface $recipient, string $subject, string $body, string $url, string $ip): bool
    {
        $success = true;

        // Temporarily switch to the recipient's language
Severity: Minor
Found in app/Services/MessageService.php - About 1 hr to fix

    Method deliverMessage has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function deliverMessage(UserInterface $sender, UserInterface $recipient, string $subject, string $body, string $url, string $ip): bool
    Severity: Minor
    Found in app/Services/MessageService.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status