Showing 1,241 of 1,241 total issues
Space before opening parenthesis of function call prohibited Open
Open
->orWhereHas('teachers', fn (Builder $query) => $query->where('users.id', '=', auth()->user()->getKey()))
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (Builder $query) => $query->where('consultation_user.consultation_id', '=', $this->value)
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->whereHas('consultationUser', fn (Builder $query) => $query->where('user_id', '=', $userId))
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
$reminderStatus,
- Exclude checks
Expected 0 spaces after opening bracket; newline found Open
Open
if (
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
->whereHas('consultation', fn (Builder $query) => $query
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (Builder $query) => $query->whereIn('categories.id', $this->value)
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
$userTerm
- Exclude checks
Opening brace should be on a new line Open
Open
public function __construct(array $params) {
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->whereHas('consultationUser', fn (Builder $query) => $query
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
$teacher,
- Exclude checks
Opening brace should be on a new line Open
Open
public function __construct(array $params) {
- Exclude checks
Expected 0 spaces after opening bracket; newline found Open
Open
if (
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
if ($terms->first(fn (ConsultationUserPivot $userPivot) => $userPivot->user_id === $userId) !== null) {
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return $proposedTerms->map(fn(ConsultationProposedTerm $proposedTerm) => Carbon::make($proposedTerm->proposed_at))->filter(fn (Carbon $proposedTerm) => !in_array($proposedTerm, $busyTerms))->toArray();
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return $query->whereHas('consultationUser', fn ($query) => $query->whereHas('user'));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
if ($terms->first(fn (ConsultationUserPivot $userPivot) => $userPivot->user_id === $userId) !== null) {
- Exclude checks
The variable $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
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
The variable $consultation_id 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
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
The variable $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
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();
}
}