EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

Call to undeclared method \EscolaLms\Webinar\Models\Webinar::belongsToMany
Open

        return $this->belongsToMany(User::class, 'webinar_user');
Severity: Critical
Found in src/Models/Webinar.php by phan

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

                && $webinar->trainers()->where('trainer_id', $user->getKey())->exists()
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

        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

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

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

    private Webinar $webinar;

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

    Route::get('/', [WebinarAPIController::class, 'index']);
Severity: Critical
Found in src/routes.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 delete(User $user, Webinar $webinar): bool
Severity: Minor
Found in src/Policies/WebinarPolicy.php by phan

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

        return $query->where('webinars.name', $like, '%' . $this->value . '%');

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

    public function isTrainer(User $user, Webinar $webinar): bool;

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

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

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

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

Route::group(['middleware' => ['auth:api'], 'prefix' => 'api/webinars'], function () {
Severity: Critical
Found in src/routes.php by phan

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

    Route::get('/start-live-stream/{id}', [WebinarAPIController::class, 'startLiveStream']);
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

Class uses undeclared trait \Illuminate\Auth\Access\HandlesAuthorization
Open

class WebinarPolicy
Severity: Critical
Found in src/Policies/WebinarPolicy.php by phan

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

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

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

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

Possibly zero references to use statement for classlike/namespace Collection (\Illuminate\Support\Collection)
Open

use Illuminate\Support\Collection;

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_CREATE);
Severity: Critical
Found in src/Policies/WebinarPolicy.php by phan
Severity
Category
Status
Source
Language