chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Missing function doc comment
Open

    public function isRequiresValidation(): bool

Missing function doc comment
Open

    public function isReal(): bool

Missing function doc comment
Open

    public function getUpdatedAt(): DateTime

Missing function doc comment
Open

    public function setItemType(int $itemType): self

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

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

Missing function doc comment
Open

    public function getObtainConditions(): ?string

Missing function doc comment
Open

    public function setCreatedAt(DateTime $createdAt): static

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

class SkillRelItem

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

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

Missing function doc comment
Open

    public function getItemType(): int

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

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

Missing function doc comment
Open

    public function setUpdatedAt(DateTime $updatedAt): static

Missing function doc comment
Open

    public function setSessionId(int $sessionId): self

Missing function doc comment
Open

    public function getItemResultUrl(string $cidReq): string

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\Column(name: 'requires_validation', type: 'boolean')]

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

    public function setItemId(int $itemId): static

Missing function doc comment
Open

    public function setRequiresValidation(bool $requiresValidation): self

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

    public function setCreatedAt(DateTime $createdAt): static

Missing function doc comment
Open

    public function getCreatedBy(): int

Space before opening parenthesis of function call prohibited
Open

        return match ($this->getItemType()) {

Missing function doc comment
Open

    public function getItemResultList(string $cidReq): string

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

Missing function doc comment
Open

    public function setObtainConditions(string $obtainConditions): self

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

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

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

    #[ORM\Column(name: 'is_real', type: 'boolean')]

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

    #[ORM\Column(name: 'c_id', type: 'integer', nullable: true)]

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function getUpdatedBy(): int

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

    #[ORM\Id]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setIsReal(bool $isReal): self

Missing function doc comment
Open

    public function setCourseId(int $courseId): self

Space before opening parenthesis of function call prohibited
Open

        return match ($this->getItemType()) {

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

Missing function doc comment
Open

    public function getSkill(): Skill

Missing function doc comment
Open

    public function getCreatedAt(): DateTime

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

    #[ORM\Column(name: 'session_id', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function setItemId(int $itemId): static

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

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

Missing function doc comment
Open

    public function getItemId(): int

Missing function doc comment
Open

    public function setCreatedBy(int $createdBy): self

Missing function doc comment
Open

    public function setUpdatedBy(int $updatedBy): self

Missing function doc comment
Open

    public function getSessionId(): ?int

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

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

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

    #[ORM\ManyToOne(targetEntity: Skill::class, inversedBy: 'items')]

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

    public function setUpdatedAt(DateTime $updatedAt): static

Missing function doc comment
Open

    public function setSkill(Skill $skill): self

Missing function doc comment
Open

    public function getCourseId(): ?int

Space before opening parenthesis of function call prohibited
Open

        return match ($this->getItemType()) {

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => $url,

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => $url,

Space before opening parenthesis of function call prohibited
Open

        return match ($this->getItemType()) {

There are no issues that match your filters.

Category
Status