EscolaLMS/Auth

View on GitHub
database/seeders/AuthPermissionSeeder.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method run has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run()
    {
        $admin   = Role::findOrCreate(UserRole::ADMIN, 'api');
        $tutor   = Role::findOrCreate(UserRole::TUTOR, 'api');
        $student =  Role::findOrCreate(UserRole::STUDENT, 'api');
Severity: Major
Found in database/seeders/AuthPermissionSeeder.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status