EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Parameter $dto has undeclared type \EscolaLms\Consultations\Dto\FinishTermDto
Open

    public function finishTerm(int $consultationTermId, FinishTermDto $dto): bool;

Reference to constant class from undeclared class \EscolaLms\Consultations\Http\Controllers\ConsultationController
Open

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

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

    Route::post('consultations/change-term/{consultationTermId}', [ConsultationController::class, 'changeTerm']);
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\Consultations\Models\User)
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_DELETE)
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

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

        || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_DELETE_OWN) && $consultation->author_id === $user->getKey());
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

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

    public function getBusyTerms(int $consultationId, ?string $date = null): Collection;

Parameter $consultationDto has undeclared type \EscolaLms\Consultations\Dto\ConsultationDto
Open

    public function update(int $id, ConsultationDto $consultationDto): Consultation;

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

    private Consultation $consultation;

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

    private RelationStrategyContract $relationStrategyContract;

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

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

Reference to constant class from undeclared class \EscolaLms\Consultations\Http\Controllers\ConsultationAPIController
Open

    Route::get('/reject-term/{consultationTermId}', [ConsultationAPIController::class, 'rejectTerm']);
Severity: Critical
Found in src/routes.php by phan

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

    Route::get('/reject-term/{consultationTermId}', [ConsultationAPIController::class, 'rejectTerm']);
Severity: Critical
Found in src/routes.php by phan

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

        $query->whereHas('consultationUser', fn($query) => $query->where('consultation_id', '=', $consultationId));

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

    public function getBoughtConsultationsByQuery(Builder $query): Builder;

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

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

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

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

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

    private Consultation $consultation;

Reference to constant class from undeclared class \EscolaLms\Consultations\Http\Controllers\ConsultationAPIController
Open

    Route::get('/generate-jitsi/{consultationTermId}', [ConsultationAPIController::class, 'generateJitsi']);
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\Consultations\Models\User)
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_READ)
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

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

            || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_UPDATE_OWN) && $consultation->author_id === $user->getKey());
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan
Severity
Category
Status
Source
Language