EscolaLMS/Webinar

View on GitHub
database/seeders/WebinarsTermsSeeder.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method sync from undeclared class \Illuminate\Database\Eloquent\Relations\BelongsToMany
Open

                $webinar->users()->sync($users->pluck('id')->toArray());
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Call to method limit from undeclared class \EscolaLms\Core\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

        $users = User::limit(10)->get();
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Call to method sync from undeclared class \Illuminate\Database\Eloquent\Relations\BelongsToMany
Open

                $webinar->trainers()->sync($trainers->pluck('id')->toArray());
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Class extends undeclared class \Illuminate\Database\Seeder
Open

class WebinarsTermsSeeder extends Seeder
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Call to method limit from undeclared class \EscolaLms\Core\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

        $trainers = User::limit(5)->get();
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Call to undeclared function \now()
Open

            'active_to' => now(),
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Static call to undeclared method \EscolaLms\Webinar\Models\Webinar::factory
Open

        Webinar::factory(5, [
Severity: Critical
Found in database/seeders/WebinarsTermsSeeder.php by phan

Expected 1 space after USE keyword; found 0
Open

            ->each(function (Webinar $webinar) use($users, $trainers) {

There are no issues that match your filters.

Category
Status