chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private fields such as '$rgt'.
Open

    private int $rgt;

UnusedPrivateField

Since: 0.2

Detects when a private field is declared and/or assigned a value, but not used.

Example

class Something
{
    private static $FOO = 2; // Unused
    private $i = 5; // Unused
    private $j = 6;
    public function addOne()
    {
        return $this->j++;
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatefield

Avoid unused private fields such as '$lft'.
Open

    private int $lft;

UnusedPrivateField

Since: 0.2

Detects when a private field is declared and/or assigned a value, but not used.

Example

class Something
{
    private static $FOO = 2; // Unused
    private $i = 5; // Unused
    private $j = 6;
    public function addOne()
    {
        return $this->j++;
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatefield

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

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

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

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

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

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

Missing function doc comment
Open

    public function getRoot(): self

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

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

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function setDate(DateTime $date): self

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

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

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

    #[Gedmo\TreeRight]

Missing function doc comment
Open

    public function getAuthor(): User

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

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

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

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

Missing function doc comment
Open

    public function setAuthor(User $author): self

Missing function doc comment
Open

    public function getItem(): Portfolio

Missing function doc comment
Open

    public function getScore(): ?float

Missing function doc comment
Open

    public function setVisibility(int $visibility): self

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

#[Gedmo\Tree(type: 'nested')]

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

    #[Gedmo\TreeParent]

Missing function doc comment
Open

    public function getId(): int

Missing function doc comment
Open

    public function setParent(?self $parent): self

Missing function doc comment
Open

    public function isImportant(): bool

Missing function doc comment
Open

    public function setIsTemplate(bool $isTemplate): self

Missing function doc comment
Open

    public function setContent(string $content): self

Missing function doc comment
Open

    public function getDate(): DateTime

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

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

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

    #[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]

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

    #[ORM\OrderBy(['lft' => 'DESC'])]

Missing function doc comment
Open

    public function setChildren(ArrayCollection $children): self

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

    #[ORM\Column(type: 'smallint', options: ['default' => self::VISIBILITY_VISIBLE])]

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

    #[ORM\Column(type: 'boolean', options: ['default' => false])]

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

    #[ORM\Column(type: 'float', nullable: true)]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setIsImportant(bool $isImportant): void

Missing function doc comment
Open

    public function isTemplate(): bool

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

class PortfolioComment

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

    #[Gedmo\TreeLevel]

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

    #[ORM\Column(type: 'boolean', options: ['default' => false])]

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

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

Missing function doc comment
Open

    public function getLvl(): int

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

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

Missing function doc comment
Open

    public function setItem(Portfolio $item): self

Missing function doc comment
Open

    public function getVisibility(): int

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

    #[Gedmo\TreeLeft]

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

    #[ORM\OneToMany(targetEntity: self::class, mappedBy: 'parent')]

Missing function doc comment
Open

    public function getChildren(): Collection

Missing function doc comment
Open

    public function setScore(?float $score): void

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

    #[Gedmo\TreeRoot]

Missing function doc comment
Open

    public function getParent(): ?self

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

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: Portfolio::class, inversedBy: 'comments')]

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

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

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

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

Missing function doc comment
Open

    public function getContent(): string

There are no issues that match your filters.

Category
Status