EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Call to undeclared function \app()
Open

        $consultationServiceContract = app(ConsultationServiceContract::class);

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

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

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

            'updated_at' => $this->resource->updatedAt,

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

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

Class uses undeclared trait \Illuminate\Auth\Access\HandlesAuthorization
Open

class ConsultationPolicy
Severity: Critical
Found in src/Policies/ConsultationPolicy.php by phan

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

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

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

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

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

    private string $namespace;
Severity: Critical
Found in src/Helpers/StrategyHelper.php by phan

Call to method allows from undeclared class \Illuminate\Support\Facades\Gate
Open

        return Gate::allows(ConsultationsPermissionsEnum::CONSULTATION_CHANGE_TERM, ConsultationUserPivot::class);

Call to undeclared function \request()
Open

            'term' => ['required', 'date', new UserTermExist(request('consultationTermId') ? (int) request('consultationTermId') : null)],

Call to undeclared method \EscolaLms\Consultations\Http\Requests\UpdateConsultationRequest::route
Open

        $prefixPath = ConstantEnum::DIRECTORY . '/' . $this->route('id');

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

class ConsultationTermsResource extends JsonResource

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

class ConsultationTermsResource extends JsonResource

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

            'consultation_term_id' => $this->resource->consultation_user_id,

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

            'users' => ConsultationUserResource::collection($this->resource->users),

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

                $this->resource->executed_status,

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

            'last_name' => $this->resource->lastName,

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

                ConsultationAuthorResource::make($this->resource->consultationUser->user) :

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

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

Parameter $user has undeclared type \EscolaLms\Auth\Models\User (Did you mean class \EscolaLms\Consultations\Models\User)
Open

    public function list(User $user): bool
Severity: Minor
Found in src/Policies/ConsultationPolicy.php by phan
Severity
Category
Status
Source
Language