EscolaLMS/Tags

View on GitHub

Showing 1 of 1 total issue

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

    public function run()
    {
        if (class_exists('EscolaLms\Courses\Models\Course')) {
            $course = call_user_func(['EscolaLms\Courses\Models\Course', 'factory'])->create();
            config(['tag_model_map.test' => 'EscolaLms\Courses\Models\Course']);
Severity: Minor
Found in database/seeders/TagsSeeder.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language