chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CBlogComment.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\ManyToOne(targetEntity: CBlog::class)]

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

class CBlogComment

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

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

Missing function doc comment
Open

    public function getCommentId(): int

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_blog_comment')]

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: 'iid', type: 'integer')]

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

    #[ORM\Column(name: 'comment', type: 'text', nullable: false)]

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setBlog(?CBlog $blog): self

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

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

Missing function doc comment
Open

    public function setAuthor(User $author): self

Missing function doc comment
Open

    public function getComment(): string

Missing function doc comment
Open

    public function setComment(string $comment): self

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

    #[ORM\Id]

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getDateCreation(): DateTime

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

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

Missing function doc comment
Open

    public function setCommentId(int $commentId): self

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

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

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

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

Missing function doc comment
Open

    public function setDateCreation(DateTime $dateCreation): self

Missing function doc comment
Open

    public function getBlog(): ?CBlog

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

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

Missing function doc comment
Open

    public function getAuthor(): User

There are no issues that match your filters.

Category
Status