chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CStudentPublicationAssignment.php

Summary

Maintainability
A
0 mins
Test Coverage

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function getEventCalendarId(): int

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

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

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

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

Missing function doc comment
Open

    public function setEventCalendarId(int $eventCalendarId): self

Missing function doc comment
Open

    public function setEndsOn(?DateTime $endsOn): self

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

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

Missing function doc comment
Open

    public function __toString(): string

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

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

Missing function doc comment
Open

    public function getEndsOn(): ?DateTime

Missing function doc comment
Open

    public function getEnableQualification(): bool

Missing class doc comment
Open

class CStudentPublicationAssignment implements Stringable

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

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

    #[Assert\GreaterThanOrEqual(propertyPath: 'expiresOn')]

Missing function doc comment
Open

    public function getExpiresOn(): ?DateTime

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function setPublication(CStudentPublication $publication): self

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

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

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

    #[Groups(['student_publication:item:get'])]

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

    #[ORM\OneToOne(inversedBy: 'assignment', targetEntity: CStudentPublication::class)]

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setEnableQualification(bool $enableQualification): self

Missing function doc comment
Open

    public function getPublication(): CStudentPublication

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

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

Missing function doc comment
Open

    public function setExpiresOn(?DateTime $expiresOn): self

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

        return (string) $this->getIid();

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

        return $this->enableQualification;

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

        $this->enableQualification = $enableQualification;

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 4 spaces, found 0
Open

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected bool $enableQualification;

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 8 spaces, found 4
Open

    {

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

    {

Line indented incorrectly; expected 4 spaces, found 0
Open

class CStudentPublicationAssignment implements Stringable

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

    {

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

        $this->expiresOn = $expiresOn;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getEndsOn(): ?DateTime

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?DateTime $endsOn = null;

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

        return $this->iid;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setEndsOn(?DateTime $endsOn): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setEventCalendarId(int $eventCalendarId): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getPublication(): CStudentPublication

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

        $this->publication = $publication;

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

        $qualification = $this->publication->getQualification();

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

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected CStudentPublication $publication;

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 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->eventCalendarId;

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

    {

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

        return $this->expiresOn;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __toString(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getExpiresOn(): ?DateTime

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->enableQualification = !empty($qualification);

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $iid = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setExpiresOn(?DateTime $expiresOn): self

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

        $this->eventCalendarId = $eventCalendarId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getEnableQualification(): bool

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->endsOn = $endsOn;

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 8 spaces, found 4
Open

    public function setEnableQualification(bool $enableQualification): self

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setPublication(CStudentPublication $publication): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->publication;

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?DateTime $expiresOn = null;

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $eventCalendarId = 0;

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

    {

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

        return $this->endsOn;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getEventCalendarId(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

    {

There are no issues that match your filters.

Category
Status