herpaderpaldent/seat-groups

View on GitHub
src/Listeners/GroupApplicationNotification.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function handle(GroupApplication $event)
{
$should_send = false;
 
if (class_exists(SeatNotificationsServiceProvider::class))
Severity: Minor
Found in src/Listeners/GroupApplicationNotification.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

    return false;
    Severity: Major
    Found in src/Listeners/GroupApplicationNotification.php - About 30 mins to fix
      Category
      Status