chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/SysAnnouncement.php

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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

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

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

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

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

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

class SysAnnouncement

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

#[ORM\Entity]

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

    #[ORM\Column(name: 'title', type: 'string', length: 250, nullable: false)]

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

    #[ORM\Column(name: 'lang', type: 'string', length: 70, nullable: true)]

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: 'content', type: 'text', nullable: false)]

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

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

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\ManyToOne(targetEntity: Promotion::class, inversedBy: 'announcements')]

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

    #[Assert\NotBlank]

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

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

Missing function doc comment
Open

    public function getRoles(): array

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

    #[ORM\Id]

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

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

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

    #[ORM\Column(type: 'array')]

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

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

Missing function doc comment
Open

    public function setContent(string $content): self

Missing function doc comment
Open

    public function hasCareer(): bool

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function setLang(string $lang): self

Missing function doc comment
Open

    public function setUrl(AccessUrl $url): self

Missing function doc comment
Open

    public function setPromotion(?Promotion $promotion): self

Missing function doc comment
Open

    public function getUrl(): AccessUrl

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

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

Missing function doc comment
Open

    public function setDateStart(DateTime $dateStart): self

Missing function doc comment
Open

    public function setCareer(?Career $career): self

Missing function doc comment
Open

    public function hasPromotion(): bool

Missing function doc comment
Open

    public function setRoles(array $roles): self

Missing function doc comment
Open

    public function addRole(string $role): self

Missing function doc comment
Open

    public function setDateEnd(DateTime $dateEnd): self

Missing function doc comment
Open

    public function getCareer(): ?Career

Missing function doc comment
Open

    public function getPromotion(): ?Promotion

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function isVisible(): bool

There are no issues that match your filters.

Category
Status