chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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\Table(name: 'skill')]

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

class Skill implements Stringable, Translatable

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

    #[ORM\OneToMany(mappedBy: 'skill', targetEntity: SkillRelItem::class, cascade: ['persist'])]

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

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

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

#[ORM\Entity(repositoryClass: SkillRepository::class)]

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

    #[ORM\OneToMany(mappedBy: 'skill', targetEntity: SkillRelCourse::class, cascade: ['persist'])]

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

    #[Groups(['skill:read', 'skill:write'])]

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

    #[ORM\ManyToOne(targetEntity: Asset::class, cascade: ['persist', 'remove'])]

Missing function doc comment
Open

    public function __toString(): string

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

    #[ORM\OneToMany(mappedBy: 'skill', targetEntity: SkillRelSkill::class, cascade: ['persist'])]

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

    #[Groups(['skill:read', 'skill:write', 'skill_rel_user:read'])]

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

    #[ORM\ManyToOne(targetEntity: Profile::class, inversedBy: 'skills')]

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

    #[Assert\NotNull]

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

    #[Gedmo\Locale]

Missing function doc comment
Open

    public function __construct()

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

    #[Assert\NotBlank]

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

#[ApiResource(normalizationContext: ['groups' => ['skill:read']], security: 'is_granted(\'ROLE_ADMIN\')')]

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

    #[ORM\JoinColumn(name: 'profile_id', referencedColumnName: 'id')]

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

    #[Gedmo\Translatable]

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

    #[Groups(['skill:read', 'skill_rel_user:read'])]

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

    #[ORM\Column(name: 'short_code', type: 'string', length: 100, nullable: false)]

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

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

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

    #[ORM\Column(name: 'status', type: 'integer', nullable: false, options: ['default' => 1])]

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

#[ApiFilter(SearchFilter::class, properties: ['issuedSkills.user' => 'exact'])]

Missing function doc comment
Open

    public function getIcon(): string

Missing function doc comment
Open

    public function getUpdatedAt(): DateTime

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function setProfile(Profile $profile): self

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

    #[ORM\OneToMany(mappedBy: 'skill', targetEntity: SkillRelGradebook::class, cascade: ['persist'])]

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: 'icon', type: 'string', length: 255, nullable: false)]

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

    #[ORM\JoinColumn(name: 'asset_id', referencedColumnName: 'id')]

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

    #[ORM\Column(name: 'criteria', type: 'text', nullable: true)]

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getShortCode(): string

Missing function doc comment
Open

    public function getAccessUrlId(): int

Missing function doc comment
Open

    public function setCriteria(string $criteria): self

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

    #[Groups(['skill:read'])]

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

    #[ORM\OneToMany(mappedBy: 'skill', targetEntity: SkillRelUser::class, cascade: ['persist'])]

Missing function doc comment
Open

    public function getDescription(): string

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

    public function setAccessUrlId(int $accessUrlId): static

Missing function doc comment
Open

    public function getCourses(): Collection

Missing function doc comment
Open

    public function setItems(ArrayCollection $items): self

Missing function doc comment
Open

    public function addToCourse(SkillRelCourse $item): void

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setShortCode(string $shortCode): self

Missing function doc comment
Open

    public function getCriteria(): ?string

Missing function doc comment
Open

    public function setLocale(string $locale): self

Missing function doc comment
Open

    public function setAsset(?Asset $asset): self

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

    #[Groups(['skill:read'])]

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

    #[Gedmo\Translatable]

Missing function doc comment
Open

    public function setIcon(string $icon): self

Missing function doc comment
Open

    public function setUpdatedAt(DateTime $updatedAt): static

Missing function doc comment
Open

    public function addItem(SkillRelItem $skillRelItem): void

Missing function doc comment
Open

    public function setStatus(int $status): self

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

    #[Groups(['skill:read', 'skill:write'])]

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

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

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

    #[Gedmo\Timestampable(on: 'update')]

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

    #[ORM\Column(name: 'updated_at', type: 'datetime', nullable: false)]

Missing function doc comment
Open

    public function getAsset(): ?Asset

Missing function doc comment
Open

    public function getProfile(): ?Profile

Missing function doc comment
Open

    public function hasItem(int $typeId, int $itemId): bool

Missing function doc comment
Open

    public function getStatus(): int

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

    public function setUpdatedAt(DateTime $updatedAt): static

Missing function doc comment
Open

    public function setCourses(ArrayCollection $courses): self

Missing function doc comment
Open

    public function hasCourseAndSession(SkillRelCourse $searchItem): bool

Missing function doc comment
Open

    public function hasAsset(): bool

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function getLocale(): string

Missing function doc comment
Open

    public function setAccessUrlId(int $accessUrlId): static

There are no issues that match your filters.

Category
Status