chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

    #[Gedmo\SortableGroup]

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

    #[ORM\Column]

Missing function doc comment
Open

    public function getCourse(): ?Course

Missing function doc comment
Open

    public function getResourceNode(): ResourceNode

Missing function doc comment
Open

    public function isPending(): bool

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

    public function moveUpPosition(): 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

    #[Gedmo\SortableGroup]

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

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

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function setCourse(?Course $course = null): self

Missing function doc comment
Open

    public function getUser(): ?User

Missing function doc comment
Open

    public function hasUser(): bool

Missing function doc comment
Open

    public static function getVisibilityList(): array

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

    #[ORM\Column(name: 'end_visibility_at', type: 'datetime', nullable: true)]

Missing function doc comment
Open

    public function setUser(?User $user = null): self

Missing function doc comment
Open

    public function setResourceNode(ResourceNode $resourceNode): self

Missing function doc comment
Open

    public function getVisibility(): int

Missing function doc comment
Open

    public function moveDownPosition(): static

Missing function doc comment
Open

    public function setEndVisibilityAt(?DateTimeInterface $endVisibilityAt): self

Missing function doc comment
Open

    public function hasCourse(): bool

Missing function doc comment
Open

    public function setGroup(?CGroup $group = null): self

Missing function doc comment
Open

    public function getVisibilityName(): string

Missing function doc comment
Open

    public function getResourceTypeGroup(): ?int

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

    #[Gedmo\SortablePosition]

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

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

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

    #[Groups(['resource_link:read', 'resource_link:write', 'student_publication:read'])]

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

    #[ORM\Column]

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

#[ORM\Index(

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

Missing function doc comment
Open

    public function hasSession(): bool

Missing function doc comment
Open

    public function setVisibility(int $visibility): self

Missing function doc comment
Open

    public function setDisplayOrder(int $displayOrder): static

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

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

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

    #[Gedmo\SortableGroup]

Missing function doc comment
Open

    public function getStartVisibilityAt(): ?DateTimeInterface

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

#[ApiResource]

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

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

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

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

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

    #[ORM\OneToMany(

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function setResourceRights(Collection $rights): self

Missing function doc comment
Open

    public function hasGroup(): bool

Missing function doc comment
Open

    public function getUserGroup(): ?Usergroup

Missing function doc comment
Open

    public function setUserGroup(?Usergroup $group = null): self

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

    public function setResourceTypeGroup(int $resourceTypeGroup): static

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

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

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

    #[Gedmo\SortableGroup]

Missing function doc comment
Open

    public function getSession(): ?Session

Missing function doc comment
Open

    public function setSession(?Session $session = null): self

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

    #[ORM\ManyToOne(targetEntity: ResourceNode::class, inversedBy: 'resourceLinks')]

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

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

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

    #[ORM\JoinColumn(name: 'group_id', referencedColumnName: 'iid', nullable: true, onDelete: 'CASCADE')]

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

    #[Groups([

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

    #[Groups(['resource_node:read', 'resource_node:write', 'document:write', 'document:read'])]

Missing function doc comment
Open

    public function isDraft(): bool

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getDisplayOrder(): int

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

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

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

    #[Gedmo\SortableGroup]

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

    #[ORM\Column(name: 'start_visibility_at', type: 'datetime', nullable: true)]

Missing function doc comment
Open

    public function setStartVisibilityAt(?DateTimeInterface $startVisibilityAt): self

Missing function doc comment
Open

    public function setResourceTypeGroup(int $resourceTypeGroup): static

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

#[Gedmo\SoftDeleteable(fieldName: 'deletedAt', timeAware: false, hardDelete: true)]

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

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

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

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

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

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

Missing function doc comment
Open

    public function getEndVisibilityAt(): ?DateTimeInterface

Missing function doc comment
Open

    public function addResourceRight(ResourceRight $right): self

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

    public function moveDownPosition(): static

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

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

Missing function doc comment
Open

    public function isPublished(): bool

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

    public function setDisplayOrder(int $displayOrder): static

Missing function doc comment
Open

    public function moveUpPosition(): static

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

class ResourceLink implements Stringable

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\Column(name: 'visibility', type: 'integer', nullable: false)]

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

    #[Groups(['resource_node:read', 'resource_node:write', 'document:write', 'document:read'])]

Missing function doc comment
Open

    public function getGroup(): ?CGroup

There are no issues that match your filters.

Category
Status