EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Call to method make from undeclared class \Illuminate\Support\Carbon
Open

            'date' => Carbon::make($this->resource->executed_at) ?? '',

Property \EscolaLms\Consultations\Models\ConsultationProposedTerm->proposed_at has undeclared type \Illuminate\Support\Carbon
Open

 * @property Carbon $proposed_at

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationTermsResource->resource
Open

                $this->resource->executed_status,

Reference to undeclared property \EscolaLms\Consultations\Http\Resources\ConsultationUserTermsResource->resource
Open

                $this->resource->executed_at,

Call to undeclared method \EscolaLms\Consultations\Models\Traits\HasConsultations::belongsToMany
Open

        return $this->belongsToMany(Consultation::class, 'consultation_user')->withTimestamps();
Severity: Critical
Found in src/Models/Traits/HasConsultations.php by phan

Static call to undeclared method \EscolaLms\Consultations\Http\Resources\ConsultationTermResource::collection
Open

            'busy_terms' => ConsultationTermResource::collection($consultationServiceContract->getBusyTermsFormatDate($consultation->getKey())),

Call to undeclared method \EscolaLms\Consultations\Models\Consultation::belongsTo
Open

        return $this->belongsTo(User::class, 'author_id');
Severity: Critical
Found in src/Models/Consultation.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/Consultation.php by phan

Call to undeclared method \EscolaLms\Consultations\Models\Consultation::belongsToMany
Open

        return $this->belongsToMany(User::class, 'consultation_user');
Severity: Critical
Found in src/Models/Consultation.php by phan

Call to undeclared method \EscolaLms\Consultations\Models\Consultation::hasMany
Open

        return $this->hasMany(ConsultationProposedTerm::class, 'consultation_id');
Severity: Critical
Found in src/Models/Consultation.php by phan

Reference to undeclared property \EscolaLms\Consultations\Models\Consultation->attributes
Open

                $logotype = Storage::url(trim($this->attributes['logotype_path'], '/'));
Severity: Minor
Found in src/Models/Consultation.php by phan

Reference to undeclared property \EscolaLms\Consultations\Models\Consultation->duration
Open

        return $this->duration ?? '0';
Severity: Minor
Found in src/Models/Consultation.php by phan

Property \EscolaLms\Consultations\Models\ConsultationUserPivot->executed_at has undeclared type \Illuminate\Support\Carbon
Open

 * @property Carbon $executed_at
Severity: Minor
Found in src/Models/ConsultationUserPivot.php by phan

Return type of userTerms() is undeclared type \Illuminate\Database\Eloquent\Relations\HasMany
Open

    public function userTerms(): HasMany
Severity: Minor
Found in src/Models/ConsultationUserPivot.php by phan

Property \EscolaLms\Consultations\Models\ConsultationUserTerm->executed_at has undeclared type \Illuminate\Support\Carbon
Open

 * @property Carbon $executed_at
Severity: Minor
Found in src/Models/ConsultationUserTerm.php by phan

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

    private ?int $consultationUserId;
Severity: Critical
Found in src/Rules/UserTermExist.php by phan

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

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

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

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

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

    public function allQueryBuilder(

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

    public function getAllUserTermsByConsultationIdAndExecutedAt(int $consultationId, string $executedAt): Collection;
Severity
Category
Status
Source
Language