EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Static call to undeclared method \EscolaLms\Consultations\Http\Resources\ConsultationAuthorResource::make
Open

            'author' =>  $consultation->author ? ConsultationAuthorResource::make($consultation->author) : null,

Class extends undeclared class \Illuminate\Database\Eloquent\Model
Open

class ConsultationProposedTerm extends Model
Severity: Critical
Found in src/Models/ConsultationProposedTerm.php by phan

Class uses undeclared trait \Illuminate\Database\Eloquent\Factories\HasFactory
Open

class ConsultationUserPivot extends Model
Severity: Critical
Found in src/Models/ConsultationUserPivot.php by phan

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

        return $this->belongsTo(Consultation::class);
Severity: Critical
Found in src/Models/ConsultationUserPivot.php by phan

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

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

Reference to constant class from undeclared class \EscolaLms\Categories\Models\Category
Open

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

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->duration

Static call to undeclared method \EscolaLms\Consultations\Http\Resources\ConsultationAuthorResource::make
Open

            'author' =>  $this->resource->author ? ConsultationAuthorResource::make($this->resource->author) : null,

Static call to undeclared method \EscolaLms\Consultations\Http\Resources\ConsultationTermsResource::apply
Open

        return self::apply($fields, $this);

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

            'is_active' => $this->resource->isActive,

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

            'access_to_directories' => $this->resource->accessToDirectories,

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

            'categories' => $this->resource->categories,

Class extends undeclared class \Illuminate\Database\Eloquent\Model
Open

class Consultation extends Model
Severity: Critical
Found in src/Models/Consultation.php by phan

Class uses undeclared trait \Illuminate\Database\Eloquent\Factories\HasFactory
Open

class Consultation extends Model
Severity: Critical
Found in src/Models/Consultation.php by phan

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

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

Static call to undeclared method \EscolaLms\Consultations\Database\Factories\ConsultationUserFactory::new
Open

        return ConsultationUserFactory::new();
Severity: Critical
Found in src/Models/ConsultationUserPivot.php by phan

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

    public function categories(): BelongsToMany
Severity: Minor
Found in src/Models/User.php by phan

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

            'user' => isset($this->resource->consultationUser->user) ?

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

    private string $status;
Severity: Critical
Found in src/Jobs/ReminderAboutConsultationJob.php by phan
Severity
Category
Status
Source
Language