chamilo/chamilo-lms

View on GitHub
src/CoreBundle/ApiResource/CalendarEvent.php

Summary

Maintainability
A
0 mins
Test Coverage

The method __construct has 18 parameters. Consider reducing the number of parameters to less than 10.
Open

    public function __construct(
        #[Groups(['calendar_event:read'])]
        public ?string $id = null,
        #[Groups(['calendar_event:read'])]
        public ?string $title = null,

Missing class doc comment
Open

class CalendarEvent extends AbstractResource

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Add a single space around assignment operators
Open

declare(strict_types=1);

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var Collection<int, AgendaReminder>|null

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Missing function doc comment
Open

    public function setType(?string $type): self

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Closing brace must be on a line by itself
Open

    ) {}

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Missing function doc comment
Open

    public function __construct(

Missing function doc comment
Open

    public function getType(): ?string

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

The first parameter of a multi-line function declaration must be on the line after the opening bracket
Open

        public ?string $id = null,

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Groups(['calendar_event:read'])]

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $content = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public bool $collective = false,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $invitationType = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public int $subscriptionVisibility = CCalendarEvent::SUBSCRIPTION_VISIBILITY_NO,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $subscriptionItemTitle = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $title = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?array $resourceLinkListFromEntity = null,

Closing brace must be on a line by itself
Open

    ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $color = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?ResourceNode $resourceNode = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $url = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public int $maxAttendees = 0,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?DateTime $startDate = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public bool $allDay = false,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?Collection $reminders = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $type = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $id = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?int $subscriptionItemId = null,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?DateTime $endDate = null,

There are no issues that match your filters.

Category
Status