EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

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

        return $this->belongsTo(ConsultationUserPivot::class, 'consultation_user_id', 'id', 'consultation_user');
Severity: Critical
Found in src/Models/ConsultationUserTerm.php by phan

Return type of consultations() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsToMany
Open

    public function consultations(): BelongsToMany
Severity: Minor
Found in src/Models/Traits/HasConsultations.php by phan

Call to method findOrCreate from undeclared class \Spatie\Permission\Models\Permission
Open

        Permission::findOrCreate(ConsultationsPermissionsEnum::CONSULTATION_CREATE, 'api');

Call to method findOrCreate from undeclared class \Spatie\Permission\Models\Permission
Open

        Permission::findOrCreate(ConsultationsPermissionsEnum::CONSULTATION_READ, 'api');

Reference to constant class from undeclared class \Laravel\Passport\Passport
Open

        if (!$this->app->routesAreCached() && method_exists(Passport::class, 'routes')) {
Severity: Critical
Found in src/AuthServiceProvider.php by phan

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

    protected string $name;
Severity: Critical
Found in src/Dto/ConsultationDto.php by phan

Reference to undeclared property \EscolaLms\Consultations\EscolaLmsConsultationsServiceProvider->app
Open

        $this->app->register(EscolaLmsCategoriesServiceProvider::class);

Possibly zero references to use statement for classlike/namespace Gate (\Illuminate\Support\Facades\Gate)
Open

use Illuminate\Support\Facades\Gate;

Static call to undeclared method \EscolaLms\Consultations\Enum\ConsultationTermStatusEnum::getValues
Open

            'status' => ['string', Rule::in(ConsultationTermStatusEnum::getValues())],

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

        return is_string($this->resource) ? Carbon::make($this->resource) : $this->resource;

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

        return is_string($this->resource) ? Carbon::make($this->resource) : $this->resource;

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

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

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

                $this->resource->executed_at,

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

                $this->resource->executed_status,

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

        if ($this->attributes['image_path'] ?? null) {
Severity: Minor
Found in src/Models/Consultation.php by phan

Call to method getExtraAttributesValues from undeclared class \EscolaLms\ModelFields\Facades\ModelFields
Open

            ModelFields::getExtraAttributesValues($this->resource, MetaFieldVisibilityEnum::PUBLIC)

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

        return is_string($this->resource) ? Carbon::make($this->resource) : $this->resource;

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

        return is_string($this->resource) ? Carbon::make($this->resource) : $this->resource;

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

                $this->resource->executed_at,

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

                $this->resource->executed_at,
Severity
Category
Status
Source
Language