chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Missing function doc comment
Open

    public function __toString(): string

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

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

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getDateCreation(): DateTime

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function setResourceName(string $name): self

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

    #[ORM\Id]

Missing function doc comment
Open

    public function setDateCreation(DateTime $dateCreation): self

Missing function doc comment
Open

    public function addAttachment(CBlogAttachment $attachment): self

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getBlogSubtitle(): ?string

Missing function doc comment
Open

    public function setBlogSubtitle(?string $blogSubtitle): self

Missing function doc comment
Open

    public function __construct()

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

class CBlog extends AbstractResource implements ResourceInterface, Stringable

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

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

Missing function doc comment
Open

    public function removeAttachment(CBlogAttachment $attachment): self

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\GeneratedValue]

Missing function doc comment
Open

    public function getResourceIdentifier(): int

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\Entity]

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

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

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

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

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 getIid(): ?int

There are no issues that match your filters.

Category
Status