EscolaLMS/Consultations

View on GitHub

Showing 1,241 of 1,241 total issues

Line exceeds 120 characters; contains 123 characters
Open

    public function getConsultationsList(array $search = [], bool $onlyActive = false, OrderDto $orderDto = null): Builder;

Line exceeds 120 characters; contains 163 characters
Open

                $userTerm->executed_status = $term->executed_status === ConsultationTermStatusEnum::APPROVED ? $term->executed_status : $userTerm->executed_status;

Line exceeds 120 characters; contains 159 characters
Open

        $userTerms = $dto->getUserId() ? collect([$this->consultationUserTermRepository->getUserTermByUserIdAndExecutedAt($dto->getUserId(), $dto->getTerm())])

Line exceeds 120 characters; contains 149 characters
Open

            return $this->consultationUserTermRepository->updateUserTermByExecutedAt($consultationTerm, $executedAt, ['executed_status' => $status]);

Line exceeds 120 characters; contains 186 characters
Open

                if ($consultation && (Auth::user()->getKey() === $consultation->author_id || in_array(Auth::user()->getKey(), $consultation->teachers()->pluck('users.id')->toArray()))) {

Line exceeds 120 characters; contains 151 characters
Open

                    $terms = $this->consultationUserTermRepository->getAllUserTermsByConsultationIdAndExecutedAt($consultation->getKey(), $executedAt);

Line exceeds 120 characters; contains 140 characters
Open

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

Line exceeds 120 characters; contains 167 characters
Open

        $extension = $dto->getFile() instanceof UploadedFile ? $dto->getFile()->getClientOriginalExtension() : Str::between($dto->getFile(), 'data:image/', ';base64');

Line exceeds 120 characters; contains 123 characters
Open

        $this->consultationServiceContract->approveTerm($consultationTermId, new ConsultationUserTermDto($request->all()));

Line exceeds 120 characters; contains 140 characters
Open

    public function updateByConsultationUserIdAndExecutedAt(int $consultationUserId, string $executedAt, array $data): ConsultationUserTerm;

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 172 characters
Open

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

Line exceeds 120 characters; contains 136 characters
Open

        return $this->filterProposedTerms($consultationUserPivot->consultation_id, $consultationUserPivot->consultation->proposedTerms);

Line exceeds 120 characters; contains 142 characters
Open

        return $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST) || $user->can(ConsultationsPermissionsEnum::CONSULTATION_LIST_OWN);

Line exceeds 120 characters; contains 127 characters
Open

        || ($user->can(ConsultationsPermissionsEnum::CONSULTATION_DELETE_OWN) && $consultation->author_id === $user->getKey());

Line exceeds 120 characters; contains 167 characters
Open

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

Line exceeds 120 characters; contains 121 characters
Open

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

Line exceeds 120 characters; contains 167 characters
Open

                $userTerms = $dto->getUserId() ? collect([$this->consultationUserTermRepository->getUserTermByUserIdAndExecutedAt($dto->getUserId(), $dto->getTerm())])

Line exceeds 120 characters; contains 152 characters
Open

    public function __construct(User $user, ConsultationUserPivot $consultationTerm, string $status, ?ConsultationUserTerm $consultationUserTerm = null)

Line exceeds 120 characters; contains 146 characters
Open

            'busy_terms' => ConsultationTermResource::collection($consultationServiceContract->getBusyTermsFormatDate($this->resource->getKey())),
Severity
Category
Status
Source
Language