EscolaLMS/Courses

View on GitHub
database/seeders/CoursesPermissionSeeder.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function run()
    {
        // create permissions
        $admin = Role::findOrCreate(UserRole::ADMIN, 'api');
        $tutor = Role::findOrCreate(UserRole::TUTOR, 'api');
Severity: Minor
Found in database/seeders/CoursesPermissionSeeder.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status