chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

Missing function doc comment
Open

    public function getCreatedAt(): DateTime

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

    public function setUpdatedAt(DateTime $updatedAt): static

Missing function doc comment
Open

    public function setUpdatedAt(DateTime $updatedAt): static

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: 'courses')]

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

    #[ORM\ManyToOne(targetEntity: Course::class, cascade: ['persist'], inversedBy: 'skills')]

Missing function doc comment
Open

    public function getSkill(): Skill

Missing function doc comment
Open

    public function getSession(): ?Session

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

class SkillRelCourse

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

    #[ORM\ManyToOne(targetEntity: Session::class, cascade: ['persist'], inversedBy: 'skills')]

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

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

Missing function doc comment
Open

    public function setCreatedAt(DateTime $createdAt): static

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getCourse(): Course

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\JoinColumn(name: 'c_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]

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

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

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function setSkill(Skill $skill): self

Missing function doc comment
Open

    public function setCourse(Course $course): self

Missing function doc comment
Open

    public function setSession(?Session $session): self

Missing function doc comment
Open

    public function getUpdatedAt(): DateTime

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

    public function setCreatedAt(DateTime $createdAt): static

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

    #[ORM\GeneratedValue]

There are no issues that match your filters.

Category
Status