EscolaLMS/Consultations

View on GitHub

Showing 1,011 of 1,011 total issues

Expected 0 spaces after opening bracket; newline found
Open

        if (

Space before opening parenthesis of function call prohibited
Open

            fn (Builder $query) => $query->whereIn('categories.id', $this->value)

Space before opening parenthesis of function call prohibited
Open

            fn (Builder $query) => $query->where('consultation_user.id', '=', $this->value)

Space before opening parenthesis of function call prohibited
Open

        return $proposedTerms->map(fn(ConsultationProposedTerm $proposedTerm) => Carbon::make($proposedTerm->proposed_at))->filter(fn (Carbon $proposedTerm) => !in_array($proposedTerm, $busyTerms))->toArray();

Space before opening parenthesis of function call prohibited
Open

                    fn (User $teacher) => event(new ReminderTrainerAboutTerm(

Call to undeclared function \now()
Open

        $now = now();
Severity: Critical
Found in database/factories/ConsultationFactory.php by phan

Reference to undeclared property \EscolaLms\Consultations\Database\Factories\ConsultationFactory->faker
Open

            'description' => $this->faker->sentence,

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

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

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

            $table->foreign('consultation_id')->references('id')->on('consultations')->onDelete('CASCADE');

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

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

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

            $table->id();

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

            $table->foreign('consultation_id')->on('consultations')->references('id')->cascadeOnDelete();

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

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

Parameter $table has undeclared type \Illuminate\Database\Schema\Blueprint
Open

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

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

            $table->bigInteger('author_id')->unsigned()->nullable();

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

            $table->text('calendar_url')->nullable();

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

            $table->timestamps();

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

        Schema::table('consultations', function (Blueprint $table) {

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

            !Schema::hasColumns('orders', ['executed_at', 'executed_status'])

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

            Schema::hasColumns('orders', ['executed_at', 'executed_status'])
Severity
Category
Status
Source
Language