EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Line exceeds 120 characters; contains 187 characters
Open

            'proposed_terms' => ConsultationProposedTermResource::collection($consultationServiceContract->filterProposedTerms($this->resource->getKey(), $this->resource->proposedTerms)),

Line exceeds 120 characters; contains 149 characters
Open

        $this->consultationServiceContract->setReminderStatus($event->getConsultationTerm(), $event->getStatus(), $event->getConsultationUserTerm());

Line exceeds 120 characters; contains 153 characters
Open

                    event(new ChangeTerm($consultationUserTerm->consultationUser->user, $consultationUserTerm->consultationUser, $consultationUserTerm));

Line exceeds 120 characters; contains 130 characters
Open

            $search['active_from'] = isset($search['active_from']) ? Carbon::make($search['active_from'])->format('Y-m-d') : $now;

Line exceeds 120 characters; contains 209 characters
Open

        return $proposedTerms->map(fn(ConsultationProposedTerm $proposedTerm) => Carbon::make($proposedTerm->proposed_at))->filter(fn (Carbon $proposedTerm) => !in_array($proposedTerm, $busyTerms))->toArray();

Line exceeds 120 characters; contains 206 characters
Open

        if ($consultationTerm->consultation->author->getKey() === auth()->user()->getKey() || in_array(auth()->user()->getKey(), $consultationTerm->consultation->teachers()->pluck('users.id')->toArray())) {

Line exceeds 120 characters; contains 125 characters
Open

        return $this->consultationUserTermRepository->allQueryBuilder(FilterConsultationTermsListDto::prepareFilters($data));

Line exceeds 120 characters; contains 129 characters
Open

    public function canGenerateJitsi(?string $executedAt, ?string $status, ?string $duration, ?Consultation $consultation): bool;

Line exceeds 120 characters; contains 175 characters
Open

        $consultationUser = ConsultationUserPivot::query()->where('consultation_id', '=', $dto->getConsultationId())->where('id', '=', $dto->getUserTerminId())->firstOrFail();

Line exceeds 120 characters; contains 158 characters
Open

        $userTerms = $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultationTerm->consultation_id, $dto->getTerm());

Line exceeds 120 characters; contains 151 characters
Open

        if ($user && $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST_OWN) && !$user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST)) {
Severity: Minor
Found in src/Dto/FilterListDto.php by phpcodesniffer

Line exceeds 120 characters; contains 128 characters
Open

            $consultation->$key = FileHelper::getFilePath($file, ConstantEnum::DIRECTORY . "/{$consultation->getKey()}/images");

Line exceeds 120 characters; contains 124 characters
Open

        Storage::putFileAs($folder, $dto->getFile(), Carbon::make($dto->getTimestamp())->getTimestamp() . '.' . $extension);

Line exceeds 120 characters; contains 140 characters
Open

            $dto->addToCriteria(new WhereNotInOrIsNullCriterion($dto->model()->getTable() . '.reminder_status', $dto->getReminderStatus()));

Line exceeds 120 characters; contains 138 characters
Open

            'term' => ['required', 'date', new UserTermExist(request('consultationTermId') ? (int) request('consultationTermId') : null)],

Line exceeds 120 characters; contains 147 characters
Open

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

Line exceeds 120 characters; contains 151 characters
Open

            : $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultationTerm->consultation_id, $dto->getTerm());

Line exceeds 120 characters; contains 141 characters
Open

    public function setReminderStatus(ConsultationUserPivot $consultationTerm, string $status, ?ConsultationUserTerm $userTerm = null): void;

Line exceeds 120 characters; contains 125 characters
Open

            $dto->addToCriteria(new WhereCriterion($dto->model()->getTable() . '.executed_at', $dto->getDateTimeTo(), '<='));

Line exceeds 120 characters; contains 131 characters
Open

            || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_UPDATE_OWN) && $consultation->author_id === $user->getKey());
Severity
Category
Status
Source
Language