Showing 1,241 of 1,241 total issues
Line exceeds 120 characters; contains 187 characters Open
Open
'proposed_terms' => ConsultationProposedTermResource::collection($consultationServiceContract->filterProposedTerms($this->resource->getKey(), $this->resource->proposedTerms)),
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
Open
$this->consultationServiceContract->setReminderStatus($event->getConsultationTerm(), $event->getStatus(), $event->getConsultationUserTerm());
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
Open
event(new ChangeTerm($consultationUserTerm->consultationUser->user, $consultationUserTerm->consultationUser, $consultationUserTerm));
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
$search['active_from'] = isset($search['active_from']) ? Carbon::make($search['active_from'])->format('Y-m-d') : $now;
- Exclude checks
Line exceeds 120 characters; contains 209 characters Open
Open
return $proposedTerms->map(fn(ConsultationProposedTerm $proposedTerm) => Carbon::make($proposedTerm->proposed_at))->filter(fn (Carbon $proposedTerm) => !in_array($proposedTerm, $busyTerms))->toArray();
- Exclude checks
Line exceeds 120 characters; contains 206 characters Open
Open
if ($consultationTerm->consultation->author->getKey() === auth()->user()->getKey() || in_array(auth()->user()->getKey(), $consultationTerm->consultation->teachers()->pluck('users.id')->toArray())) {
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
Open
return $this->consultationUserTermRepository->allQueryBuilder(FilterConsultationTermsListDto::prepareFilters($data));
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
Open
public function canGenerateJitsi(?string $executedAt, ?string $status, ?string $duration, ?Consultation $consultation): bool;
- Exclude checks
Line exceeds 120 characters; contains 175 characters Open
Open
$consultationUser = ConsultationUserPivot::query()->where('consultation_id', '=', $dto->getConsultationId())->where('id', '=', $dto->getUserTerminId())->firstOrFail();
- Exclude checks
Line exceeds 120 characters; contains 158 characters Open
Open
$userTerms = $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultationTerm->consultation_id, $dto->getTerm());
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
Open
if ($user && $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST_OWN) && !$user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST)) {
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
$consultation->$key = FileHelper::getFilePath($file, ConstantEnum::DIRECTORY . "/{$consultation->getKey()}/images");
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
Storage::putFileAs($folder, $dto->getFile(), Carbon::make($dto->getTimestamp())->getTimestamp() . '.' . $extension);
- Exclude checks
Line exceeds 120 characters; contains 140 characters Open
Open
$dto->addToCriteria(new WhereNotInOrIsNullCriterion($dto->model()->getTable() . '.reminder_status', $dto->getReminderStatus()));
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
Open
'term' => ['required', 'date', new UserTermExist(request('consultationTermId') ? (int) request('consultationTermId') : null)],
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
Open
public function updateUserTermByExecutedAt(ConsultationUserPivot $consultationUserPivot, string $executedAt, array $data): ConsultationUserTerm
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
Open
: $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultationTerm->consultation_id, $dto->getTerm());
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
Open
public function setReminderStatus(ConsultationUserPivot $consultationTerm, string $status, ?ConsultationUserTerm $userTerm = null): void;
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
Open
$dto->addToCriteria(new WhereCriterion($dto->model()->getTable() . '.executed_at', $dto->getDateTimeTo(), '<='));
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
|| ($user->can(ConsultationsPermissionsEnum::CONSULTATION_UPDATE_OWN) && $consultation->author_id === $user->getKey());
- Exclude checks