EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

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

    public function approveTerm(int $consultationTermId, ConsultationUserTermDto $dto): bool;

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

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

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

    Route::get('/me', [ConsultationAPIController::class, 'forCurrentUser']);
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 create(User $user): bool
Severity: Minor
Found in src/Policies/ConsultationPolicy.php by phan

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

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

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

    public function allQueryBuilder(?FilterConsultationTermsListDto $filterConsultationTermsListDto = null): Collection;

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

    public function getByCurrentUserTutor(): Collection;

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

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

Class extends undeclared class \EscolaLms\Core\Repositories\Criteria\Criterion
Open

class UserExistsCriterion extends Criterion

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

        return $query->whereHas('consultationUser', fn ($query) => $query->whereHas('user'));

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

    public function generateJitsi(int $consultationTermId, ConsultationUserTermDto $dto): array;

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

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

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

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

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

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

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

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

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

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

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

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

Parameter $filterConsultationTermsListDto has undeclared type ?\EscolaLms\Consultations\Dto\FilterConsultationTermsListDto
Open

    public function allQueryBuilder(?FilterConsultationTermsListDto $filterConsultationTermsListDto = null): Collection;

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

    public function apply(Builder $query): Builder

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

    private ConsultationRepositoryContract $consultationRepositoryContract;
Severity: Critical
Found in src/Services/ConsultationService.php by phan
Severity
Category
Status
Source
Language