chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Column(name: 'iid', 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\Id]

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

class CForumThread extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

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

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

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setThreadReplies(int $threadReplies): self

Missing function doc comment
Open

    public function setThreadViews(int $threadViews): self

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

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

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function getThreadLastPost(): ?CForumPost

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

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

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

    #[ORM\JoinColumn(name: 'thread_last_post', referencedColumnName: 'iid', onDelete: 'SET NULL')]

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

    #[Assert\NotNull]

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setUser(User $user): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

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

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

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

    #[ORM\Column(name: 'thread_peer_qualify', type: 'boolean')]

Missing function doc comment
Open

    public function getLocked(): int

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

    #[ORM\OneToMany(mappedBy: 'thread', targetEntity: CForumThreadQualify::class, cascade: ['persist', 'remove'])]

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

    #[ORM\Column(name: 'thread_sticky', type: 'boolean', nullable: false)]

Missing function doc comment
Open

    public function setThreadDate(DateTime $threadDate): self

Missing function doc comment
Open

    public function getIid(): ?int

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

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

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

    #[ORM\Column(name: 'thread_replies', type: 'integer', nullable: false, options: ['unsigned' => true, 'default' => 0])]

Missing function doc comment
Open

    public function getThreadViews(): int

Missing function doc comment
Open

    public function setThreadQualifyMax(float $threadQualifyMax): self

Missing function doc comment
Open

    public function getItem(): ?CLpItem

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

    #[ORM\OneToMany(mappedBy: 'thread', targetEntity: CForumPost::class, cascade: ['persist', 'remove'], orphanRemoval: true)]

Missing function doc comment
Open

    public function setLocked(int $locked): self

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function getThreadTitleQualify(): ?string

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

    #[ORM\Column(name: 'thread_views', type: 'integer', nullable: false, options: ['unsigned' => true, 'default' => 0])]

Missing function doc comment
Open

    public function getThreadCloseDate(): ?DateTime

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function isThreadPeerQualify(): bool

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getForum(): ?CForum

Missing function doc comment
Open

    public function setThreadLastPost(CForumPost $threadLastPost): self

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function setQualifications(Collection $qualifications): self

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

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

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

    #[ORM\Column(name: 'thread_qualify_max', type: 'float', precision: 6, scale: 2, nullable: false)]

Missing function doc comment
Open

    public function setItem(?CLpItem $item): self

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

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

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

    #[ORM\Column(name: 'locked', type: 'integer', nullable: false)]

Missing function doc comment
Open

    public function setForum(?CForum $forum = null): self

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

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

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

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

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

    #[ORM\Column(name: 'thread_weight', type: 'float', precision: 6, scale: 2, nullable: false)]

Missing function doc comment
Open

    public function setThreadCloseDate(DateTime $threadCloseDate): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function setThreadPeerQualify(bool $threadPeerQualify): self

Missing function doc comment
Open

    public function getThreadReplies(): int

Missing function doc comment
Open

    public function getThreadQualifyMax(): float

Missing function doc comment
Open

    public function getUser(): User

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

    #[ORM\ManyToOne(targetEntity: CForum::class, inversedBy: 'threads')]

Missing function doc comment
Open

    public function getThreadSticky(): bool

Missing function doc comment
Open

    public function setThreadTitleQualify(string $threadTitleQualify): self

Missing function doc comment
Open

    public function setThreadWeight(float $threadWeight): self

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\Column(name: 'thread_date', type: 'datetime', nullable: false)]

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\Column(name: 'thread_title_qualify', type: 'string', length: 255, nullable: true)]

Missing function doc comment
Open

    public function getThreadDate(): DateTime

Missing function doc comment
Open

    public function setThreadSticky(bool $threadSticky): self

Missing function doc comment
Open

    public function getThreadWeight(): float

Missing function doc comment
Open

    public function getResourceName(): string

There are no issues that match your filters.

Category
Status