EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

The variable $consultation_user_id is not named in camelCase.
Open

    public function __construct(int $consultation_user_id, int $consultation_id, string $executed_at, string $status, string $duration, ?User $author, ?string $finished_at = null, ?Collection $users = null)
    {
        $this->consultation_user_id = $consultation_user_id;
        $this->consultation_id = $consultation_id;
        $this->executed_at = $executed_at;

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Static call to undeclared method \EscolaLms\Consultations\Enum\ConsultationStatusEnum::getValues
Open

            'status' => $this->faker->randomElement(ConsultationStatusEnum::getValues()),
Severity: Critical
Found in database/factories/ConsultationFactory.php by phan

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

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

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 table from undeclared class \Illuminate\Support\Facades\Schema
Open

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

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

            Schema::hasTable('orders') &&

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

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

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

class RemoveRedundantColumnsFromConsultationsTable extends Migration

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

            Schema::hasTable('orders') &&

Static call to undeclared method \EscolaLms\Consultations\Models\Consultation::firstOrCreate
Open

        $consultation = Consultation::firstOrCreate();

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

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

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

            $table->string('duration')->nullable();

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

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

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

class ChangeNameColumnsForConsultationsTable extends Migration

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

            $table->string('duration')->nullable();

Static call to undeclared method \EscolaLms\Consultations\Enum\ConsultationTermStatusEnum::getValues
Open

            'executed_status' => $this->faker->randomElement(ConsultationTermStatusEnum::getValues()),

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

            $table->integer('base_price')->nullable();

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

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

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

            $table->id();
Severity
Category
Status
Source
Language