chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CLpRelUser.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\JoinColumn(name: 'session_id', referencedColumnName: 'id', nullable: true)]

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

    #[ORM\JoinColumn(name: 'lp_id', referencedColumnName: 'iid', nullable: false, onDelete: 'CASCADE')]

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

    #[ORM\JoinColumn(name: 'c_id', referencedColumnName: 'id', nullable: false)]

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

    #[ORM\ManyToOne(targetEntity: User::class, cascade: ['persist'])]

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

    #[ORM\Id]

Missing function doc comment
Open

    public function getStartDate(): ?DateTimeInterface

Add a single space around assignment operators
Open

declare(strict_types=1);

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

#[ORM\Entity(repositoryClass: CLpRelUserRepository::class)]

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

    #[ORM\Column(name: 'iid', type: 'integer')]

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

    #[ORM\GeneratedValue]

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

    #[ORM\Column(name: 'is_open_without_date', type: 'boolean', nullable: false, options: ['default' => 0])]

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

    #[ORM\JoinColumn(name: 'group_id', referencedColumnName: 'iid', nullable: false, onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function setEndDate(?DateTimeInterface $endDate): self

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

    #[ORM\Column(name: 'end_date', type: 'datetime', nullable: true)]

Missing function doc comment
Open

    public function getGroup(): ?CGroup

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

    #[ORM\ManyToOne(targetEntity: Session::class)]

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

    #[ORM\JoinColumn(name: 'creator_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

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

    #[ORM\ManyToOne(targetEntity: User::class)]

Missing function doc comment
Open

    public function setStartDate(?DateTimeInterface $startDate): self

Missing function doc comment
Open

    public function setLp(CLp $lp): self

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

#[ORM\Table(name: 'c_lp_rel_user')]

Missing function doc comment
Open

    public function setGroup(?CGroup $group): self

Missing function doc comment
Open

    public function getCreatorUser(): ?User

Missing function doc comment
Open

    public function getEndDate(): ?DateTimeInterface

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

    #[ORM\ManyToOne(targetEntity: CLp::class)]

Missing function doc comment
Open

    public function getIsOpenWithoutDate(): bool

Missing function doc comment
Open

    public function setCreatorUser(?User $creatorUser): self

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

    #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]

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

    #[ORM\ManyToOne(targetEntity: CGroup::class)]

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

    #[ORM\Column(name: 'start_date', type: 'datetime', nullable: true)]

Missing function doc comment
Open

    public function setIid(int $iid): self

Missing function doc comment
Open

    public function getLp(): CLp

Missing function doc comment
Open

    public function setCreatedAt(DateTime $createdAt): self

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

    #[ORM\ManyToOne(targetEntity: Course::class)]

Missing function doc comment
Open

    public function setIsOpenWithoutDate(bool $isOpenWithoutDate): self

Missing function doc comment
Open

    public function getCreatedAt(): DateTime

You must use "/**" style comments for a class comment
Open

class CLpRelUser

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

    #[Gedmo\Timestampable(on: 'create')]

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

    #[ORM\Column(name: 'created_at', type: 'datetime', nullable: false)]

Missing function doc comment
Open

    public function getIid(): ?int

There are no issues that match your filters.

Category
Status