EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

Call to method connection from undeclared class \Illuminate\Support\Facades\DB
Open

        $like = DB::connection()->getPdo()->getAttribute(\PDO::ATTR_DRIVER_NAME) === 'pgsql' ? 'ILIKE' : 'LIKE';

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

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

Return type of getIncomingTerm() is undeclared type \Illuminate\Support\Collection
Open

    public function getIncomingTerm(array $criteria = []): Collection;

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

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

Parameter $orderDto has undeclared type ?\EscolaLms\Core\Dtos\OrderDto
Open

    public function getWebinarsList(array $search = [], bool $onlyActive = false, ?OrderDto $orderDto = null, bool $onlyIncoming = false): Builder;

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

Class extends undeclared class \Illuminate\Database\Eloquent\Relations\Pivot
Open

class WebinarUserPivot extends Pivot
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

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

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

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

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

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

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

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

    public function getWebinarsList(array $search = [], bool $onlyActive = false, ?OrderDto $orderDto = null, bool $onlyIncoming = false): Builder;

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;

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

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 get from undeclared class \Illuminate\Support\Facades\Route
Open

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

        return $user->can(WebinarPermissionsEnum::WEBINAR_CREATE);
Severity: Critical
Found in src/Policies/WebinarPolicy.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

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

    private ?bool $withDuration;
Severity
Category
Status
Source
Language