EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

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

        return Gate::allows('list', Consultation::class);

Call to method in from undeclared class \Illuminate\Validation\Rule
Open

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

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

        ], ModelFields::getFieldsMetadataRules(Consultation::class));

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

class ConsultationAuthorResource extends JsonResource

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

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

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

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

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

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

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

    protected int $consultationId;
Severity: Critical
Found in src/Dto/ConsultationSaveScreenDto.php by phan

Reference to constant class from undeclared class \EscolaLms\Consultations\Services\ConsultationService
Open

        ConsultationServiceContract::class => ConsultationService::class

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

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

Return type of render() is undeclared type \Illuminate\Http\JsonResponse
Open

    public function render($request): JsonResponse
Severity: Minor
Found in src/Exceptions/ChangeTermException.php by phan

Return type of schedule() is undeclared type \Illuminate\Http\JsonResponse
Open

    public function schedule(ScheduleConsultationAPIRequest $scheduleConsultationAPIRequest): JsonResponse;

Call to method __construct from undeclared class \EscolaLms\Consultations\Rules\UserTermExist
Open

            'term' => ['required', 'date', new UserTermExist(request('consultationTermId'))],

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

            $this->resource->toArray(),

Reference to constant PUBLIC from undeclared class \EscolaLms\ModelFields\Enum\MetaFieldVisibilityEnum
Open

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

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

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

Call to method create from undeclared class \Illuminate\Support\Facades\Schema
Open

        Schema::create('consultation_proposed_terms', function (Blueprint $table) {

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

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

Call to method bigInteger from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->bigInteger('consultation_id')->unsigned();

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

                $this->resource->duration
Severity
Category
Status
Source
Language