chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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: 'forum_of_group', type: 'string', length: 20, nullable: true)]

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

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

Missing function doc comment
Open

    public function setForumThreads(int $forumThreads): self

Missing function doc comment
Open

    public function setAllowNewThreads(int $allowNewThreads): self

Missing function doc comment
Open

    public function getForumOfGroup(): ?string

Missing function doc comment
Open

    public function setForumImage(string $forumImage): self

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

class CForum extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

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: 'forum_posts', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function getApprovalDirectPost(): ?string

Missing function doc comment
Open

    public function setDefaultView(string $defaultView): self

Missing function doc comment
Open

    public function setForumGroupPublicPrivate(string $forumGroupPublicPrivate): static

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 __toString(): string

Missing function doc comment
Open

    public function setAllowAnonymous(int $allowAnonymous): self

Missing function doc comment
Open

    public function getEndTime(): ?DateTime

Missing function doc comment
Open

    public function getForumLastPost(): ?CForumPost

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

#[ORM\Entity(repositoryClass: CForumRepository::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\JoinColumn(name: 'forum_last_post', referencedColumnName: 'iid')]

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

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

Missing function doc comment
Open

    public function setForumCategory(?CForumCategory $forumCategory = null): self

Missing function doc comment
Open

    public function setAllowAttachments(int $allowAttachments): self

Scope keyword "static" must be followed by a single space
Open

    public function setForumGroupPublicPrivate(string $forumGroupPublicPrivate): static

Missing function doc comment
Open

    public function getLocked(): int

Missing function doc comment
Open

    public function getIid(): ?int

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

    #[ORM\Column(name: 'allow_attachments', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setForumOfGroup(string $forumOfGroup): self

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

    #[ORM\Column(name: 'allow_anonymous', type: 'integer', nullable: true)]

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

    #[ORM\Column(name: 'moderated', type: 'boolean', nullable: true)]

Missing function doc comment
Open

    public function getForumPosts(): ?int

Missing function doc comment
Open

    public function getAllowNewThreads(): ?int

Missing function doc comment
Open

    public function isModerated(): bool

Missing function doc comment
Open

    public function setApprovalDirectPost(string $approvalDirectPost): self

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

    #[ORM\Id]

Missing function doc comment
Open

    public function setEndTime(?DateTime $endTime): 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: 'approval_direct_post', type: 'string', length: 20, nullable: true)]

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

    #[ORM\Column(name: 'allow_new_threads', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function getAllowEdit(): ?int

Missing function doc comment
Open

    public function getForumImage(): string

Missing function doc comment
Open

    public function setStartTime(?DateTime $startTime): self

Missing function doc comment
Open

    public function getThreads(): Collection

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

    #[ORM\Column(name: 'forum_comment', type: 'text', nullable: true)]

Missing function doc comment
Open

    public function getForumComment(): string

Missing function doc comment
Open

    public function getAllowAnonymous(): ?int

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

    #[ORM\Column(name: 'forum_threads', type: 'integer', nullable: true)]

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

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

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

    #[ORM\ManyToOne(targetEntity: CLp::class, cascade: ['remove'], inversedBy: 'forums')]

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

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

Missing function doc comment
Open

    public function getStartTime(): ?DateTime

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

    #[ORM\Column(name: 'allow_edit', type: 'integer', nullable: true)]

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

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

Missing function doc comment
Open

    public function setModerated(bool $moderated): self

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

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

Missing function doc comment
Open

    public function setForumComment(string $forumComment): self

Missing function doc comment
Open

    public function getDefaultView(): ?string

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

    #[ORM\ManyToOne(targetEntity: CForumCategory::class, inversedBy: 'forums')]

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

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

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

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

Missing function doc comment
Open

    public function hasThread(CForumThread $thread): bool

Missing function doc comment
Open

    public function setForumPosts(int $forumPosts): self

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getForumThreads(): ?int

Missing function doc comment
Open

    public function getAllowAttachments(): ?int

Missing function doc comment
Open

    public function getForumGroupPublicPrivate(): string

Missing function doc comment
Open

    public function setLocked(int $locked): self

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function getLp(): ?CLp

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\Table(name: 'c_forum_forum')]

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

    #[ORM\OneToMany(mappedBy: 'forum', targetEntity: CForumThread::class, cascade: ['persist'], orphanRemoval: true)]

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

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

Missing function doc comment
Open

    public function getForumCategory(): ?CForumCategory

Missing function doc comment
Open

    public function setAllowEdit(int $allowEdit): self

Missing function doc comment
Open

    public function setLp(?CLp $lp): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function setForumLastPost(CForumPost $forumLastPost): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int

There are no issues that match your filters.

Category
Status