ernestwisniewski/kbin

View on GitHub
src/Controller/Api/Magazine/Moderate/MagazineUserBanApi.php

Summary

Maintainability
A
1 hr
Test Coverage

Method ban has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

        #[MapEntity(id: 'magazine_id')]
        Magazine $magazine,
        #[MapEntity(id: 'user_id')]
        User $user,
        MagazineBan $magazineBan,
Severity: Major
Found in src/Controller/Api/Magazine/Moderate/MagazineUserBanApi.php - About 50 mins to fix

    Method unban has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            #[MapEntity(id: 'magazine_id')]
            Magazine $magazine,
            #[MapEntity(id: 'user_id')]
            User $user,
            MagazineUnban $magazineUnban,
    Severity: Minor
    Found in src/Controller/Api/Magazine/Moderate/MagazineUserBanApi.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status