chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

#[ORM\Index(name: 'course_rel_user_c_id_user_id', columns: ['id', 'c_id', 'user_id'])]

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

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

Missing function doc comment
Open

    public function setCourse(Course $course): self

Missing function doc comment
Open

    public function setStatus(int $status): self

Missing function doc comment
Open

    public function setUserCourseCat(int $userCourseCat): self

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

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

Missing function doc comment
Open

    public function getStatus(): int

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

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

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function getUserCourseCat(): ?int

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

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

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

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

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

    #[Groups(['course:read', 'user:read', 'course_rel_user:read'])]

Missing function doc comment
Open

    public function getRelationType(): int

Missing function doc comment
Open

    public function setLegalAgreement(int $legalAgreement): self

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

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

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

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

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

    #[Assert\Range(min: 0, max: 100, notInRangeMessage: 'Progress from {{ min }} to {{ max }} only')]

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

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

Missing function doc comment
Open

    public function getCourse(): Course

Missing function doc comment
Open

    public function setRelationType(int $relationType): self

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 setTutor(bool $tutor): self

Missing class doc comment
Open

class CourseRelUser 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: 'progress', type: 'integer')]

Missing function doc comment
Open

    public function isTutor(): ?bool

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

    #[ORM\Column(name: 'is_tutor', type: 'boolean', nullable: true, unique: false)]

Missing function doc comment
Open

    public function __construct()

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

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

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

    #[Groups(['course:read', 'user:read'])]

Missing function doc comment
Open

    public function getSort(): ?int

Missing function doc comment
Open

    public function setSort(int $sort): self

Missing function doc comment
Open

    public function getLegalAgreement(): ?int

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

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

#[ORM\Index(name: 'course_rel_user_user_id', columns: ['id', 'user_id'])]

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

Add a single space around assignment operators
Open

declare(strict_types=1);

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

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

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

    #[Groups(['course:read', 'user:read'])]

Missing function doc comment
Open

    public function __toString(): string

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

#[ApiFilter(

Missing function doc comment
Open

    public function setProgress(int $progress): self

Missing function doc comment
Open

    public function getProgress(): int

Missing function doc comment
Open

    public function setUser(User $user): self

Missing function doc comment
Open

    public function getUser(): User

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected User $user;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCourse(): Course

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->legalAgreement = $legalAgreement;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $progress;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->getCourse()->getCode();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setCourse(Course $course): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->id;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->tutor = $tutor;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->userCourseCat = $userCourseCat;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->legalAgreement;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?bool $tutor;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setRelationType(int $relationType): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function isTutor(): ?bool

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTutor(bool $tutor): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUserCourseCat(int $userCourseCat): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    use UserTrait;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $legalAgreement = null;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->relationType = 0;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __toString(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStatus(): int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $relationType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $status;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->relationType = $relationType;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->status = $status;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUserCourseCat(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getRelationType(): int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->sort;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setLegalAgreement(int $legalAgreement): self

Line indented incorrectly; expected at least 4 spaces, found 0
Open

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $userCourseCat;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->status = self::STUDENT;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->course;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getId(): ?int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSort(int $sort): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const STUDENT = 5;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setStatus(int $status): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sort = $sort;

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Course $course;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $sort;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const TEACHER = 1;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->course = $course;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->tutor = false;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->relationType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSort(): ?int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->tutor;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->userCourseCat = 0;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->progress = 0;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sort = 0;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->userCourseCat;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 4 spaces, found 0
Open

class CourseRelUser implements Stringable

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLegalAgreement(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUser(User $user): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->user;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->progress = $progress;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->user = $user;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUser(): User

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getProgress(): int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->progress;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setProgress(int $progress): self

There are no issues that match your filters.

Category
Status