EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Call to method getKey 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

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

    public function store(ConsultationDto $consultationDto): Consultation;

Return type of generateDateTo() is undeclared type ?\Carbon\Carbon
Open

    public function generateDateTo(string $dateTo, string $duration): ?Carbon;

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

    public function getConsultationTermsForTutor(): Collection;

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

    public function saveScreen(ConsultationSaveScreenDto $dto): void;

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

    Route::resource('consultations', ConsultationController::class);
Severity: Critical
Found in src/routes.php by phan

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

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

Class extends undeclared class \Illuminate\Foundation\Support\Providers\EventServiceProvider (Did you mean class \EscolaLms\Consultations\Providers\EventServiceProvider)
Open

class EventServiceProvider extends ServiceProvider
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

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

interface ConsultationRepositoryContract extends BaseRepositoryContract

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

interface ConsultationUserRepositoryContract extends BaseRepositoryContract

Doc-block of getBusyTerms contains declared return type \Illuminate\Support\Collection<int></int> which is incompatible with the return type \Illuminate\Support\Collection declared in the signature
Open

     * @return Collection<int, Model>

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

    public function apply(Builder $query): Builder

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

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

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

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

Reference to constant class from undeclared class \EscolaLms\Consultations\Listeners\ReminderAboutTermListener
Open

            ReminderAboutTermListener::class
Severity: Critical
Found in src/Providers/EventServiceProvider.php by phan

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

    public function allQueryBuilder(array $search = [], array $criteria = []): Builder;

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

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

Parameter $models has undeclared type \Illuminate\Support\Collection
Open

    public function updateModels(Collection $models, array $data): void;

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

    public function apply(Builder $query): Builder

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

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