src/Repositories/Contracts/ConsultationUserTermRepositoryContract.php
Return type of getAllUserTermsByConsultationIdAndExecutedAt()
is undeclared type \Illuminate\Support\Collection
Open
Open
public function getAllUserTermsByConsultationIdAndExecutedAt(int $consultationId, string $executedAt): Collection;
- Exclude checks
Return type of getBusyTerms()
is undeclared type \Illuminate\Support\Collection
Open
Open
public function getBusyTerms(int $consultationId, ?string $date = null): Collection;
- Exclude checks
Doc-block of getBusyTerms
contains declared return type \Illuminate\Support\Collection<int></int>
which is incompatible with the return type \Illuminate\Support\Collection
declared in the signature Open
Open
* @return Collection<int, Model>
- Exclude checks
Parameter $models
has undeclared type \Illuminate\Support\Collection
Open
Open
public function updateModels(Collection $models, array $data): void;
- Exclude checks
Return type of allQueryBuilder()
is undeclared type \Illuminate\Support\Collection
Open
Open
public function allQueryBuilder(?FilterConsultationTermsListDto $filterConsultationTermsListDto = null): Collection;
- Exclude checks
Return type of getByCurrentUserTutor()
is undeclared type \Illuminate\Support\Collection
Open
Open
public function getByCurrentUserTutor(): Collection;
- Exclude checks
Parameter $filterConsultationTermsListDto
has undeclared type ?\EscolaLms\Consultations\Dto\FilterConsultationTermsListDto
Open
Open
public function allQueryBuilder(?FilterConsultationTermsListDto $filterConsultationTermsListDto = null): Collection;
- Exclude checks
Class implements undeclared interface \EscolaLms\Core\Repositories\Contracts\BaseRepositoryContract
Open
Open
interface ConsultationUserTermRepositoryContract extends BaseRepositoryContract
- Exclude checks
Return type of getBusyTerms()
is undeclared type \Illuminate\Support\Collection<int></int>
Open
Open
public function getBusyTerms(int $consultationId, ?string $date = null): Collection;
- Exclude checks
Avoid excessively long variable names like $filterConsultationTermsListDto. Keep variable name length under 20. Open
Open
public function allQueryBuilder(?FilterConsultationTermsListDto $filterConsultationTermsListDto = null): Collection;
- Read upRead up
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
Avoid excessively long variable names like $consultationUserPivot. Keep variable name length under 20. Open
Open
public function updateUserTermByExecutedAt(ConsultationUserPivot $consultationUserPivot, string $executedAt, array $data): ConsultationUserTerm;
- Read upRead up
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
Avoid excessively long variable names like $consultationUserPivot. Keep variable name length under 20. Open
Open
public function createUserTerm(ConsultationUserPivot $consultationUserPivot, array $data): ConsultationUserTerm;
- Read upRead up
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
The closing brace for the interface must go on the next line after the body Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 140 characters Open
Open
public function updateByConsultationUserIdAndExecutedAt(int $consultationUserId, string $executedAt, array $data): ConsultationUserTerm;
- Exclude checks
Line exceeds 120 characters; contains 148 characters Open
Open
public function updateUserTermByExecutedAt(ConsultationUserPivot $consultationUserPivot, string $executedAt, array $data): ConsultationUserTerm;
- Exclude checks