EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateConsultationCategoryTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class ChangeColumnsInConsultationuserTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class AddMaxParticipantsOnSessionToConsultationsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateLogotypeColumnInConsultationsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class RemoveRedundantColumnsFromConsultationsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class RemoveNotUsedColumnsFromConsultationsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class RemoveParticipantTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class AddConsultationIdColumnForConsultationTermsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateConsultationsParticipantsTable extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class RemoveMissingColumns extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class AddColumnsDateAndStatusToOrders extends Migration

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CreateConsultationsTable extends Migration

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public ?int $id = null;

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The parameter $finished_at 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;

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public function schedule(int $id, ScheduleConsultationRequest $scheduleConsultationRequest): JsonResponse

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The property $executed_at is not named in camelCase.
Open

class ConsultationUserTermResourceDto
{
    public int $consultation_user_id;
    public int $consultation_id;
    public string $executed_at;

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public function show(ShowAPIConsultationRequest $showAPIConsultationRequest, int $id): JsonResponse

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The parameter $executed_at 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;

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public function update(int $id, UpdateConsultationRequest $updateConsultationRequest): JsonResponse;

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public function schedule(int $id, ScheduleConsultationRequest $scheduleConsultationRequest): JsonResponse;

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Severity
Category
Status
Source
Language