chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Missing function doc comment
Open

    public function setMask(int $mask): self

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

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\Column(name: 'role', type: 'string', length: 255, nullable: false)]

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

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

Missing function doc comment
Open

    public function setResourceLink(ResourceLink $resourceLink): self

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

    #[ORM\GeneratedValue(strategy: 'AUTO')]

Missing function doc comment
Open

    public function setRole(string $role): self

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

class ResourceRight implements Stringable

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

    #[ORM\ManyToOne(targetEntity: ResourceLink::class, inversedBy: 'resourceRights')]

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: 'mask', type: 'integer', nullable: false)]

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getRole(): string

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

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

There are no issues that match your filters.

Category
Status