Showing 1,241 of 1,241 total issues
Line exceeds 120 characters; contains 123 characters Open
Open
public function getConsultationsList(array $search = [], bool $onlyActive = false, OrderDto $orderDto = null): Builder;
- Exclude checks
Line exceeds 120 characters; contains 163 characters Open
Open
$userTerm->executed_status = $term->executed_status === ConsultationTermStatusEnum::APPROVED ? $term->executed_status : $userTerm->executed_status;
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
Open
$userTerms = $dto->getUserId() ? collect([$this->consultationUserTermRepository->getUserTermByUserIdAndExecutedAt($dto->getUserId(), $dto->getTerm())])
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
Open
return $this->consultationUserTermRepository->updateUserTermByExecutedAt($consultationTerm, $executedAt, ['executed_status' => $status]);
- Exclude checks
Line exceeds 120 characters; contains 186 characters Open
Open
if ($consultation && (Auth::user()->getKey() === $consultation->author_id || in_array(Auth::user()->getKey(), $consultation->teachers()->pluck('users.id')->toArray()))) {
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
Open
$terms = $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultation->getKey(), $executedAt);
- Exclude checks
Line exceeds 120 characters; contains 140 characters Open
Open
public function setReminderStatus(ConsultationUserPivot $consultationTerm, string $status, ?ConsultationUserTerm $userTerm = null): void
- Exclude checks
Line exceeds 120 characters; contains 167 characters Open
Open
$extension = $dto->getFile() instanceof UploadedFile ? $dto->getFile()->getClientOriginalExtension() : Str::between($dto->getFile(), 'data:image/', ';base64');
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
Open
$this->consultationServiceContract->approveTerm($consultationTermId, new ConsultationUserTermDto($request->all()));
- 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 208 characters Open
Open
StringHelper::convertToJitsiSlug($consultationTerm->consultation->name, [], ConstantEnum::DIRECTORY, $consultationTerm->consultation_id, (string) Carbon::make($term->executed_at)->getTimestamp()),
- Exclude checks
Line exceeds 120 characters; contains 172 characters Open
Open
if ($consultationTerm->consultation->author->getKey() === $userId || in_array($userId, $consultationTerm->consultation->teachers()->pluck('users.id')->toArray())) {
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
Open
return $this->filterProposedTerms($consultationUserPivot->consultation_id, $consultationUserPivot->consultation->proposedTerms);
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
Open
return $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST) || $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST_OWN);
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
Open
|| ($user->can(ConsultationsPermissionsEnum::CONSULTATION_DELETE_OWN) && $consultation->author_id === $user->getKey());
- Exclude checks
Line exceeds 120 characters; contains 167 characters Open
Open
$query->whereHas('userTerms', fn ($query) => $query->whereIn('executed_status', [ConsultationTermStatusEnum::APPROVED, ConsultationTermStatusEnum::REPORTED]));
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
Open
$query->whereIn('executed_status', [ConsultationTermStatusEnum::APPROVED, ConsultationTermStatusEnum::REPORTED]);
- Exclude checks
Line exceeds 120 characters; contains 167 characters Open
Open
$userTerms = $dto->getUserId() ? collect([$this->consultationUserTermRepository->getUserTermByUserIdAndExecutedAt($dto->getUserId(), $dto->getTerm())])
- Exclude checks
Line exceeds 120 characters; contains 152 characters Open
Open
public function __construct(User $user, ConsultationUserPivot $consultationTerm, string $status, ?ConsultationUserTerm $consultationUserTerm = null)
- Exclude checks
Line exceeds 120 characters; contains 146 characters Open
Open
'busy_terms' => ConsultationTermResource::collection($consultationServiceContract->getBusyTermsFormatDate($this->resource->getKey())),
- Exclude checks