EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

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

    public function getWebinarsListForCurrentUser(array $search = []): Builder;

Reference to constant class from undeclared class \EscolaLms\Core\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

        return $this->belongsTo(User::class);
Severity: Critical
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 create(User $user): bool
Severity: Minor
Found in src/Policies/WebinarPolicy.php by phan

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

Class extends undeclared class \Illuminate\Foundation\Support\Providers\EventServiceProvider (Did you mean class \EscolaLms\Webinar\Providers\EventServiceProvider)
Open

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

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

    public function apply(Builder $query): Builder

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

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

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

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

Call to undeclared method \EscolaLms\Webinar\Models\WebinarUserPivot::belongsTo
Open

        return $this->belongsTo(Webinar::class);
Severity: Critical
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 can from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Webinar\Models\User)
Open

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

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

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

Reference to undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

        parent::__construct(null, $value);

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

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

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

syntax error, unexpected 'RelationStrategyContract' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private RelationStrategyContract $relationStrategyContract;

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

    public function update(int $id, WebinarDto $webinarDto): Webinar;

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

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

    Route::get('/start-live-stream/{id}', [WebinarAPIController::class, 'startLiveStream']);
Severity: Critical
Found in src/routes.php by phan

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

    Route::get('webinars/users/assignable', [WebinarController::class, 'assignableUsers']);
Severity: Critical
Found in src/routes.php by phan
Severity
Category
Status
Source
Language