EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

Reference to constant class from undeclared class \EscolaLms\Webinar\Http\Controllers\WebinarAPIController
Open

    Route::get('/', [WebinarAPIController::class, 'index']);
Severity: Critical
Found in src/routes.php by phan

Return type of user() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsTo
Open

    public function user(): BelongsTo
Severity: Minor
Found in src/Models/WebinarUserPivot.php by phan

Parameter $user has undeclared type \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

    public function list(User $user): bool
Severity: Minor
Found in src/Policies/WebinarPolicy.php by phan

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

                && $webinar->trainers()->where('trainer_id', $user->getKey())->exists()
Severity: Critical
Found in src/Policies/WebinarPolicy.php by phan

Class extends undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

class WebinarSearch extends Criterion

syntax error, unexpected '$query' (T_VARIABLE), expecting ',' or ')'
Open

        return $query->whereHas('tags', fn (Builder $query) =>

syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
Open

            $query->orWhereHas('users', fn ($query) =>
Severity: Critical
Found in src/Repositories/WebinarRepository.php by phan

Parameter $webinarDto has undeclared type \EscolaLms\Webinar\Dto\WebinarDto
Open

    public function store(WebinarDto $webinarDto): Webinar;

Return type of getWebinarEndDate() is undeclared type ?\Carbon\Carbon
Open

    public function getWebinarEndDate(Webinar $webinar): ?Carbon;

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

        return $user->can(WebinarPermissionsEnum::WEBINAR_DELETE)
Severity: Critical
Found in src/Policies/WebinarPolicy.php by phan

Reference to constant class from undeclared class \EscolaLms\Webinar\Events\ReminderAboutTerm
Open

        ReminderAboutTerm::class => [
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

Reference to constant class from undeclared class \EscolaLms\Webinar\Listeners\ReminderAboutTermListener
Open

            ReminderAboutTermListener::class
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

Return type of allQueryBuilder() is undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function allQueryBuilder(array $search = [], array $criteria = []): Builder;

Call to method post from undeclared class \Illuminate\Support\Facades\Route
Open

    Route::post('webinars/{id}', [WebinarController::class, 'update']);
Severity: Critical
Found in src/routes.php by phan

Call to method resource from undeclared class \Illuminate\Support\Facades\Route
Open

    Route::resource('webinars', WebinarController::class);
Severity: Critical
Found in src/routes.php by phan

Reference to constant class from undeclared class \EscolaLms\Webinar\Http\Controllers\WebinarAPIController
Open

    Route::get('/me', [WebinarAPIController::class, 'forCurrentUser']);
Severity: Critical
Found in src/routes.php by phan

Call to method get from undeclared class \Illuminate\Support\Facades\Route
Open

    Route::get('/generate-jitsi/{id}', [WebinarAPIController::class, 'generateJitsi']);
Severity: Critical
Found in src/routes.php by phan

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

        return $user->canAny([WebinarPermissionsEnum::WEBINAR_LIST, WebinarPermissionsEnum::WEBINAR_LIST_OWN]);
Severity: Critical
Found in src/Policies/WebinarPolicy.php by phan

Parameter $user has undeclared type \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

    public function read(User $user, Webinar $webinar): bool
Severity: Minor
Found in src/Policies/WebinarPolicy.php by phan

Return type of getWebinarsListForCurrentUser() is undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function getWebinarsListForCurrentUser(array $search = []): Builder;
Severity
Category
Status
Source
Language