EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

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

                $this->resource->duration

Class extends undeclared class \Illuminate\Http\Resources\Json\JsonResource
Open

class ConsultationUserResource extends JsonResource

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

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

Class extends undeclared class \Illuminate\Http\Resources\Json\JsonResource
Open

class ConsultationUserTermsResource extends JsonResource

Class uses undeclared trait \EscolaLms\Auth\Traits\ResourceExtandable
Open

class ConsultationTermResource extends JsonResource

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

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

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

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

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

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

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

            'created_at' => $this->resource->createdAt,

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

        $consultation = $this->resource->consultationUser->consultation;

Possibly zero references to use statement for classlike/namespace CoreUser (\EscolaLms\Core\Models\User)
Open

use EscolaLms\Core\Models\User as CoreUser;
Severity: Minor
Found in src/Models/Consultation.php by phan

Return type of consultation() is undeclared type \Illuminate\Database\Eloquent\Relations\BelongsTo
Open

    public function consultation(): BelongsTo

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

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

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

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

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

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

Call to method can from undeclared class \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST) || $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST_OWN);
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

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

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

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

            'email_verified_at' => $this->resource->emailVerifiedAt,

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

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

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

            'delete_user_token' => $this->resource->deleteUserToken,
Severity
Category
Status
Source
Language