EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

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

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

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

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

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

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

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

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

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

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('/{id}', [WebinarAPIController::class, 'show']);
Severity: Critical
Found in src/routes.php by phan

Return type of users() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsToMany
Open

    public function users(): BelongsToMany
Severity: Minor
Found in src/Models/Webinar.php by phan

Call to undeclared method \EscolaLms\Webinar\Models\WebinarUserPivot::belongsTo
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

                $user->can(WebinarPermissionsEnum::WEBINAR_UPDATE_OWN)
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

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

    public function apply(Builder $query): Builder

Reference to undeclared property \EscolaLms\Webinar\Repositories\Criteria\WebinarSearch->value
Open

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

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

use Illuminate\Http\Resources\Json\AnonymousResourceCollection;

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;
Severity
Category
Status
Source
Language