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
Open
class CreateConsultationCategoryTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class ChangeColumnsInConsultationuserTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class AddMaxParticipantsOnSessionToConsultationsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class CreateLogotypeColumnInConsultationsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class RemoveRedundantColumnsFromConsultationsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class RemoveNotUsedColumnsFromConsultationsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class RemoveParticipantTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class AddConsultationIdColumnForConsultationTermsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class CreateConsultationsParticipantsTable extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class RemoveMissingColumns extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class AddColumnsDateAndStatusToOrders extends Migration
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class CreateConsultationsTable extends Migration
- Exclude checks
Avoid variables with short names like $id. Configured minimum length is 3. Open
Open
public ?int $id = null;
- Read upRead up
- Exclude checks
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
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;
- Read upRead up
- Exclude checks
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
Open
public function schedule(int $id, ScheduleConsultationRequest $scheduleConsultationRequest): JsonResponse
- Read upRead up
- Exclude checks
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
Open
class ConsultationUserTermResourceDto
{
public int $consultation_user_id;
public int $consultation_id;
public string $executed_at;
- Read upRead up
- Exclude checks
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
Open
public function show(ShowAPIConsultationRequest $showAPIConsultationRequest, int $id): JsonResponse
- Read upRead up
- Exclude checks
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
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;
- Read upRead up
- Exclude checks
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
Open
public function update(int $id, UpdateConsultationRequest $updateConsultationRequest): JsonResponse;
- Read upRead up
- Exclude checks
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
Open
public function schedule(int $id, ScheduleConsultationRequest $scheduleConsultationRequest): JsonResponse;
- Read upRead up
- Exclude checks
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;
}
}
}