EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Return type of forCurrentUserResponse() is undeclared type \Illuminate\Http\Resources\Json\AnonymousResourceCollection
Open

    public function forCurrentUserResponse(ListConsultationsRequest $listConsultationsRequest): AnonymousResourceCollection;

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

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

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

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

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

Route::post('api/consultations/save-screen', [ConsultationAPIController::class, 'screenSave']);
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

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

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

interface ConsultationUserTermRepositoryContract extends BaseRepositoryContract

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

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

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

    Route::get('/my-schedule', [ConsultationAPIController::class, 'schedule']);
Severity: Critical
Found in src/routes.php by phan

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

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

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

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

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

    public function update(User $user, Consultation $consultation): bool
Severity: Minor
Found in src/Policies/ConsultationPolicy.php by phan

Return type of getBusyTerms() is undeclared type \Illuminate\Support\Collection<int></int>
Open

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

Reference to undeclared property \EscolaLms\Consultations\Repositories\Criteria\Primitives\OrderCriterion->value
Open

        return $query->orderBy($this->key, $this->value);

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

    public function getConsultationsListForCurrentUser(array $search = []): Builder;

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

    public function changeTerm(int $consultationTermId, ChangeTermConsultationDto $dto): bool;

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

Reference to undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

        parent::__construct(null, $value);

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

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

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

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

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

            fn (Builder $query) => $query->where('consultation_user.id', '=', $this->value)
Severity
Category
Status
Source
Language