EscolaLMS/Webinar

View on GitHub

Showing 636 of 636 total issues

Line exceeds 120 characters; contains 129 characters
Open

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

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

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

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

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

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

                           WHEN SUBSTRING_INDEX(duration, ' ', -1) = 'seconds' or SUBSTRING_INDEX(duration, ' ', -1) = 'second' THEN DATE_ADD(active_to, INTERVAL SUBSTRING_INDEX(duration, ' ', 1) SECOND )

Line exceeds 120 characters; contains 142 characters
Open

                return Str::startsWith($logotypePath, ConstantEnum::DIRECTORY) ? $logotypePath : ConstantEnum::DIRECTORY . '/' .$logotypePath;
Severity: Minor
Found in src/Dto/WebinarDto.php by phpcodesniffer

Line exceeds 120 characters; contains 149 characters
Open

            'event_start_date_time' => $webinar->active_to ? Carbon::make($webinar->active_to)->format('Y-m-d H:i:s') : now()->format('Y-m-d H:i:s'),

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 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 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 )

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces before closing bracket; newline found
Open

                   return $query->orWhere(fn (Builder $query) => $query

Opening brace should be on a new line
Open

    public function __construct(array $params) {

Opening brace should be on a new line
Open

    public function __construct(array $params) {

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

            $query->orWhereHas('trainers', fn ($query) =>
Severity
Category
Status
Source
Language