chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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\JoinColumn(name: 'skill_id', referencedColumnName: 'id')]

Missing function doc comment
Open

    public function getLevel(): int

Missing function doc comment
Open

    public function getParent(): ?Skill

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\ManyToOne(targetEntity: Skill::class, inversedBy: 'skills')]

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

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

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

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

Missing function doc comment
Open

    public function setParent(?Skill $parent): self

Missing function doc comment
Open

    public function getId(): int

Missing function doc comment
Open

    public function getRelationType(): int

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

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

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

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

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function setRelationType(int $relationType): self

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

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

Missing function doc comment
Open

    public function setSkill(Skill $skill): 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

    #[Assert\NotBlank]

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

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

Missing function doc comment
Open

    public function getSkill(): Skill

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

class SkillRelSkill

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

    #[ORM\Id]

Missing function doc comment
Open

    public function setLevel(int $level): self

There are no issues that match your filters.

Category
Status