EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Class extends undeclared class \Illuminate\Foundation\Http\FormRequest
Open

class ChangeTermConsultationRequest extends FormRequest

Call to undeclared function \request()
Open

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

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

        return Gate::allows('delete', $this->getConsultation());

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

        return Gate::allows(ConsultationsPermissionsEnum::CONSULTATION_CHANGE_TERM, ConsultationUserPivot::class);
Severity: Critical
Found in src/Http/Requests/FinishTermRequest.php by phan

Possibly zero references to use statement for classlike/namespace ConsultationsPermissionsEnum (\EscolaLms\Consultations\Enum\ConsultationsPermissionsEnum)
Open

use EscolaLms\Consultations\Enum\ConsultationsPermissionsEnum;

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

        return Gate::allows('read', $this->getConsultation());

Possibly zero references to use statement for classlike/namespace ConsultationsPermissionsEnum (\EscolaLms\Consultations\Enum\ConsultationsPermissionsEnum)
Open

use EscolaLms\Consultations\Enum\ConsultationsPermissionsEnum;

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

        return Gate::allows('read', $this->getConsultation());

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

            $table->timestamps();

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

            $table->foreign('category_id')->on('categories')->references('id')->cascadeOnDelete();

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

                $table->dropUnique('consultation_user_unique');

Class extends undeclared class \Illuminate\Database\Migrations\Migration
Open

class AddNewPermissionMigrate extends Migration

Class extends undeclared class \Illuminate\Database\Migrations\Migration
Open

class AddMaxParticipantsOnSessionToConsultationsTable extends Migration

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

            $table->dateTime('finished_at')->nullable();

syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open

    protected array $relations = [];
Severity: Critical
Found in src/Dto/Traits/DtoHelper.php by phan

Class extends undeclared class \EscolaLms\Core\Enums\BasicEnum
Open

class ConsultationsPermissionsEnum extends BasicEnum
Severity: Critical
Found in src/Enum/ConsultationsPermissionsEnum.php by phan

Class extends undeclared class \Illuminate\Support\ServiceProvider
Open

class EscolaLmsConsultationsServiceProvider extends ServiceProvider

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

        if ($this->app->runningInConsole()) {

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

    public function changeTerm(ChangeTermConsultationRequest $changeTermConsultationRequest, int $consultationTermId): JsonResponse;

Class extends undeclared class \Illuminate\Foundation\Http\FormRequest
Open

class ListConsultationsRequest extends FormRequest
Severity
Category
Status
Source
Language