EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Line exceeds 120 characters; contains 126 characters
Open

            ->leftJoin('consultation_user_terms', 'consultation_user_terms.consultation_user_id', '=', 'consultation_user.id')

Line exceeds 120 characters; contains 148 characters
Open

    public function updateUserTermByExecutedAt(ConsultationUserPivot $consultationUserPivot, string $executedAt, array $data): ConsultationUserTerm;

Line exceeds 120 characters; contains 123 characters
Open

            $consultation = $this->consultationRepositoryContract->updateModel($consultation, $consultationDto->toArray());

Line exceeds 120 characters; contains 208 characters
Open

            StringHelper::convertToJitsiSlug($consultationTerm->consultation->name, [], ConstantEnum::DIRECTORY, $consultationTerm->consultation_id, (string) Carbon::make($term->executed_at)->getTimestamp()),

Line exceeds 120 characters; contains 134 characters
Open

                        throw new ChangeTermException(__('Term is changed but not executed event because user or term is no exists'));

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 1 newline at end of file; 0 found
Open

];

Expected 1 newline at end of file; 0 found
Open

];

Expected 0 spaces after opening bracket; newline found
Open

        if (

Space before opening parenthesis of function call prohibited
Open

                ->whereHas('consultation', fn (Builder $query) => $query

Space before opening parenthesis of function call prohibited
Open

                    fn (User $teacher) => event(new ReminderTrainerAboutTerm(

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        $userTerm->consultationUser,

Space before opening parenthesis of function call prohibited
Open

            $userTerm = $result->first(fn (ConsultationUserTermResourceDto $dto) => $dto->consultation_id === $term->consultationUser->consultation_id && $term->executed_at === $dto->executed_at);

Opening brace should be on a new line
Open

    public function __construct(array $params) {

Space before opening parenthesis of function call prohibited
Open

            fn (Builder $query) => $query->where('consultation_user.id', '=', $this->value)

Space before opening parenthesis of function call prohibited
Open

            fn (ConsultationUserTerm $term) => Carbon::make($term->executed_at)

Expected 0 spaces after opening bracket; newline found
Open

        if (

Space before opening parenthesis of function call prohibited
Open

        $query->whereHas('userTerms', fn ($query) => $query->whereIn('executed_status', [ConsultationTermStatusEnum::APPROVED, ConsultationTermStatusEnum::REPORTED]));

Space before opening parenthesis of function call prohibited
Open

            $query->whereHas('userTerms', fn ($query) => $query->where('executed_at', '=', $date));

Expected 0 spaces before closing bracket; newline found
Open

            ->whereHas('consultationUser', fn (Builder $query) => $query
Severity
Category
Status
Source
Language