chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

#[ORM\Index(columns: ['question_id'], name: 'question_id')]

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

#[ORM\Entity]

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

    public function setAuthor(int $author): static

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

    public function setSessionId(int $sessionId): static

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

#[ApiFilter(

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

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

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

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

    public function setTrackExercise(?TrackEExercise $trackExercise): static

Missing function doc comment
Open

    public function getInsertDate(): DateTime

Missing function doc comment
Open

    public function getSessionId(): int

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

#[ORM\Index(columns: ['exe_id'], name: 'exe_id')]

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

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

Missing function doc comment
Open

    public function getQuestionId(): int

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 __construct()

Missing function doc comment
Open

    public function setAnswer(?string $answer): self

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

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

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\Column(name: 'answer', type: 'text', nullable: true)]

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

#[ORM\Index(columns: ['session_id'], name: 'session_id')]

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

    #[ORM\ManyToOne(inversedBy: 'revisedAttempts')]

Missing function doc comment
Open

    public function getTeacherComment(): string

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

class TrackEAttemptQualify

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

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

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

    public function setQuestionId(int $questionId): static

Missing function doc comment
Open

    public function getAnswer(): ?string

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

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

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

    #[ORM\JoinColumn(name: 'exe_id', referencedColumnName: 'exe_id', nullable: false, onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function getTrackExercise(): ?TrackEExercise

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

    #[ORM\Id]

Missing function doc comment
Open

    public function getAuthor(): int

Missing function doc comment
Open

    public function setTeacherComment(string $teacherComment): self

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

Missing function doc comment
Open

    public function getMarks(): float

Missing function doc comment
Open

    public function getId(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $insertDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getInsertDate(): DateTime

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

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

    {

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

        return $this->marks;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected float $marks;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $author;

Line indented incorrectly; expected 8 spaces, found 4
Open

    private ?TrackEExercise $trackExercise = null;

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

        return $this->questionId;

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

    {

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

        return $this->insertDate;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSessionId(): int

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

        $this->trackExercise = $trackExercise;

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

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

        return $this->trackExercise;

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

        return $this;

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

        $this->teacherComment = $teacherComment;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setAnswer(?string $answer): self

Line indented incorrectly; expected 4 spaces, found 0
Open

class TrackEAttemptQualify

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTrackExercise(?TrackEExercise $trackExercise): static

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

        return $this->id;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $questionId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $sessionId;

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

        $this->sessionId = 0;

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

        $this->questionId = $questionId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->author = $author;

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

    {

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

        $this->answer = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getTrackExercise(): ?TrackEExercise

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

    }

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

    protected ?int $id = null;

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

    public function setMarks(float $marks): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

)]

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

{

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

        $this->teacherComment = '';

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

    public function setInsertDate(DateTime $insertDate): self

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

        $this->answer = $answer;

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $teacherComment;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setQuestionId(int $questionId): static

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->marks = $marks;

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

        $this->insertDate = $insertDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAuthor(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setAuthor(int $author): static

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

    public function getTeacherComment(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSessionId(int $sessionId): static

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

        $this->sessionId = $sessionId;

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

        $this->author = 0;

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;

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

        return $this->author;

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

    public function getId(): ?int

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

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $answer;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getQuestionId(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getMarks(): float

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

    {

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

        return $this->teacherComment;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTeacherComment(string $teacherComment): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAnswer(): ?string

There are no issues that match your filters.

Category
Status