EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

Line exceeds 120 characters; contains 147 characters
Open

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

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

        $dto = UserAssignableDto::instantiateFromArray(array_merge($request->validated(), ['assignable_by' => WebinarPermissionsEnum::WEBINAR_CREATE]));

Line exceeds 120 characters; contains 146 characters
Open

    public function getWebinarsList(array $search = [], bool $onlyActive = false, ?OrderDto $orderDto = null, bool $onlyIncoming = false): Builder

Line exceeds 120 characters; contains 124 characters
Open

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

Line exceeds 120 characters; contains 140 characters
Open

            $dto->addToCriteria(new WhereNotInOrIsNullCriterion($dto->model()->getTable() . '.reminder_status', $dto->getReminderStatus()));
Severity: Minor
Found in src/Dto/FilterListDto.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

                       ->where(fn (Builder $query) => $query->whereNull('duration')->where('webinars.active_to', '>', $this->value));

Line exceeds 120 characters; contains 198 characters
Open

                           WHEN SUBSTRING_INDEX(duration, ' ', -1) = 'week' or SUBSTRING_INDEX(duration, ' ', -1) = 'weeks' THEN DATE_ADD(active_to, INTERVAL SUBSTRING_INDEX(duration, ' ', 1) WEEK )

Line exceeds 120 characters; contains 124 characters
Open

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

Line exceeds 120 characters; contains 123 characters
Open

            $dto->addToCriteria(new WhereCriterion($dto->model()->getTable() . '.active_to', $dto->getDateTimeTo(), '<='));
Severity: Minor
Found in src/Dto/FilterListDto.php by phpcodesniffer

Line exceeds 120 characters; contains 201 characters
Open

                           WHEN SUBSTRING_INDEX(duration, ' ', -1) = 'month' or SUBSTRING_INDEX(duration, ' ', -1) = 'months' THEN DATE_ADD(active_to, INTERVAL SUBSTRING_INDEX(duration, ' ', 1) MONTH )

Line exceeds 120 characters; contains 198 characters
Open

                           WHEN SUBSTRING_INDEX(duration, ' ', -1) = 'year' or SUBSTRING_INDEX(duration, ' ', -1) = 'years' THEN DATE_ADD(active_to, INTERVAL SUBSTRING_INDEX(duration, ' ', 1) YEAR )

Line exceeds 120 characters; contains 195 characters
Open

                           WHEN SUBSTRING_INDEX(duration, ' ', -1) = 'days' or SUBSTRING_INDEX(duration, ' ', -1) = 'day' THEN DATE_ADD(active_to, INTERVAL SUBSTRING_INDEX(duration, ' ', 1) DAY )

Line exceeds 120 characters; contains 122 characters
Open

            $dto->addToCriteria(new DateCriterion($dto->model()->getTable() . '.active_from', $dto->getDateFrom(), '>='));
Severity: Minor
Found in src/Dto/FilterListDto.php by phpcodesniffer

Line exceeds 120 characters; contains 125 characters
Open

            $dto->addToCriteria(new WebinarIncomingCriterion(now()->format('Y-m-d H:i:s'), $dto->getIncomingWithDuration()));
Severity: Minor
Found in src/Dto/FilterListDto.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function __construct(array $params) {

Multi-line function call not indented correctly; expected 12 spaces but found 13
Open

             __('Webinars retrieved successfully')

Space before opening parenthesis of function call prohibited
Open

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

Opening parenthesis of a multi-line function call must be the last content on the line
Open

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

Space before opening parenthesis of function call prohibited
Open

                       ->where(fn (Builder $query) => $query->whereNull('duration')->where('webinars.active_to', '>', $this->value));
Severity
Category
Status
Source
Language