EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

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

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

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

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

    private WebinarRepositoryContract $webinarRepositoryContract;
Severity: Critical
Found in src/Services/WebinarService.php by phan

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

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

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

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

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

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

    Route::resource('webinars', WebinarController::class);
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('/', [WebinarAPIController::class, 'index']);
Severity: Critical
Found in src/routes.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_DELETE_OWN)
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

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

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

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

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

Parameter $query has undeclared type \Illuminate\Database\Eloquent\Builder
Open

    public function apply(Builder $query): Builder

Possibly zero references to use statement for classlike/namespace AnonymousResourceCollection (\Illuminate\Http\Resources\Json\AnonymousResourceCollection)
Open

use Illuminate\Http\Resources\Json\AnonymousResourceCollection;

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

use Illuminate\Support\Collection;

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

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

Class implements undeclared interface \EscolaLms\Core\Repositories\Contracts\BaseRepositoryContract
Open

interface WebinarRepositoryContract extends BaseRepositoryContract
Severity
Category
Status
Source
Language