chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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

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

    #[Assert\NotNull]

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

    #[Assert\NotBlank]

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

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

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

    #[Assert\NotBlank]

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

    #[Assert\NotNull]

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

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

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

#[ORM\Index(columns: ['exe_user_id'], name: 'idx_tee_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

#[ApiFilter(

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

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

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

    #[ORM\Column(name: 'score', type: 'float', precision: 6, scale: 2, nullable: false)]

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

    #[Assert\NotNull]

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

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

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

    #[Assert\NotNull]

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

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

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

    #[ORM\OneToMany(mappedBy: 'trackExercise', targetEntity: TrackEAttemptQualify::class, orphanRemoval: true)]

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\ManyToOne(targetEntity: Session::class)]

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

    #[ORM\Column(name: 'status', type: 'string', length: 20, nullable: false)]

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

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

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

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

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

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

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

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

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

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

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

    #[ORM\Column(name: 'steps_counter', type: 'smallint', nullable: false)]

Missing function doc comment
Open

    public function setStepsCounter(int $stepsCounter): self

Missing function doc comment
Open

    public function getOrigLpItemId(): int

Missing function doc comment
Open

    public function setExeDuration(int $exeDuration): self

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

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

Missing function doc comment
Open

    public function setDataTracking(string $dataTracking): self

Missing function doc comment
Open

    public function setStartDate(DateTime $startDate): 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

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

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

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

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

    #[Assert\NotNull]

Missing function doc comment
Open

    public function getUserIp(): string

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

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

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

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

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

    #[ORM\Column(name: 'max_score', type: 'float', precision: 6, scale: 2, nullable: false)]

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getExpiredTimeControl(): ?DateTime

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

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

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

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

Missing function doc comment
Open

    public function getQuiz(): ?CQuiz

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

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

    #[Assert\NotNull]

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

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

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

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

Missing function doc comment
Open

    public function setExeDate(DateTime $exeDate): self

Missing function doc comment
Open

    public function getDataTracking(): string

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

    #[ORM\Column(name: 'user_ip', type: 'string', length: 45, nullable: false)]

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

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

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

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

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

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

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

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

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

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

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

    #[ORM\OneToMany(mappedBy: 'trackExercise', targetEntity: TrackEAttempt::class, cascade: ['persist'])]

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

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

Missing function doc comment
Open

    public function getExeDate(): DateTime

Missing function doc comment
Open

    public function getStatus(): string

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

    #[Assert\NotNull]

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

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

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

    #[ORM\ManyToOne(targetEntity: CQuiz::class, inversedBy: 'attempts')]

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

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

Missing function doc comment
Open

    public function setUserIp(string $userIp): self

Missing function doc comment
Open

    public function getStartDate(): DateTime

Missing class doc comment
Open

class TrackEExercise

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

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

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

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

Missing function doc comment
Open

    public function getStepsCounter(): int

Missing function doc comment
Open

    public function getExeDuration(): int

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

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

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

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

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

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

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

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

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

    #[ORM\Column(name: 'blocked_categories', type: 'text', nullable: true)]

Missing function doc comment
Open

    public function setOrigLpItemId(int $origLpItemId): self

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

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

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

    #[Assert\NotNull]

Missing function doc comment
Open

    public function setOrigLpId(int $origLpId): 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

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

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

    #[Assert\NotNull]

Missing function doc comment
Open

    public function getOrigLpItemViewId(): int

Missing function doc comment
Open

    public function getExeId(): int

Missing function doc comment
Open

    public function getScore(): float

Missing function doc comment
Open

    public function getMaxScore(): float

Missing function doc comment
Open

    public function getCourse(): Course

Missing function doc comment
Open

    public function setStatus(string $status): self

Missing function doc comment
Open

    public function setCourse(Course $course): self

Missing function doc comment
Open

    public function getOrigLpId(): int

Missing function doc comment
Open

    public function getQuestionsToCheck(): string

Missing function doc comment
Open

    public function setExpiredTimeControl(?DateTime $expiredTimeControl): self

Missing function doc comment
Open

    public function setMaxScore(float $maxScore): self

Missing function doc comment
Open

    public function getAttemptByQuestionId(int $questionId): ?TrackEAttempt

Missing function doc comment
Open

    public function setQuiz(CQuiz $cQuiz): self

Missing function doc comment
Open

    public function setOrigLpItemViewId(int $origLpItemViewId): self

Missing function doc comment
Open

    public function getSession(): ?Session

Missing function doc comment
Open

    public function addRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

Missing function doc comment
Open

    public function getUser(): User

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

    public function isRevised(): bool

Missing function doc comment
Open

    public function addAttempt(TrackEAttempt $attempt): self

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

    public function addRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

Missing function doc comment
Open

    public function setScore(float $score): self

Missing function doc comment
Open

    public function setUser(User $user): self

Missing function doc comment
Open

    public function setSession(?Session $session): self

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

    public function removeRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

Missing function doc comment
Open

    public function setQuestionsToCheck(string $questionsToCheck): self

Missing function doc comment
Open

    public function removeRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

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

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

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Course $course;

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

        $this->stepsCounter = 0;

Line indented incorrectly; expected 8 spaces, found 4
Open

    private Collection $revisedAttempts;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected float $score;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $origLpId;

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

        $this->revisedAttempts = new ArrayCollection();

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

        $this->startDate = new DateTime();

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

        $this->userIp = $userIp;

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

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

        $this->origLpItemId = $origLpItemId;

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

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setExpiredTimeControl(?DateTime $expiredTimeControl): self

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

        return $this->origLpItemViewId;

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

    use UserExtraFieldFilterTrait;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $origLpItemId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $attempts;

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

        $this->exeDate = $exeDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getQuiz(): ?CQuiz

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUserIp(string $userIp): self

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setDataTracking(string $dataTracking): 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 at least 12 spaces, found 8
Open

        return $this->origLpItemId;

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

)]

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

        $this->dataTracking = '';

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

    {

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

        return $this;

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

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $blockedCategories;

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

    {

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

        return $this->status;

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

        $this->questionsToCheck = '';

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

        $this->status = 'incomplete';

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

        return $this->dataTracking;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStartDate(): DateTime

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

    {

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

        return $this->startDate;

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

class TrackEExercise

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $exeDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setOrigLpItemViewId(int $origLpItemViewId): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $dataTracking;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $startDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $stepsCounter;

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

        $this->score = 0;

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

        return $this->userIp;

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

    {

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

        $this->dataTracking = $dataTracking;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getExpiredTimeControl(): ?DateTime

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?Session $session = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

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

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

        $this->origLpId = $origLpId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setExeDuration(int $exeDuration): self

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

    {

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

        $this->expiredTimeControl = $expiredTimeControl;

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

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?CQuiz $quiz = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $exeDuration;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $origLpItemViewId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->startDate = $startDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setOrigLpItemId(int $origLpItemId): self

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

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?DateTime $expiredTimeControl = null;

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

        $this->exeDate = new DateTime();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setOrigLpId(int $origLpId): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getExeDuration(): int

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

        return $this->exeDuration;

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

        return $this->expiredTimeControl;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getOrigLpItemViewId(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $exeId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected User $user;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected float $maxScore;

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

        $this->attempts = new ArrayCollection();

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

        return $this->exeDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setQuiz(CQuiz $cQuiz): 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 function setStepsCounter(int $stepsCounter): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getOrigLpId(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $userIp;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $questionsToCheck;

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

        $this->blockedCategories = '';

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

        $this->exeDuration = 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 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

    }

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

    }

Line indented incorrectly; expected 16 spaces, found 12
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->user;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAttempts(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setAttempts(Collection $attempts): self

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 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 getQuestionsToCheck(): string

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

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

        return null;

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

        return $this->revisedAttempts;

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

            $revisedAttempt->setTrackExercise($this);

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

        $this->score = $score;

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

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

        $criteria = Criteria::create();

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

            return $attempt;

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

    {

Line indented incorrectly; expected 16 spaces, found 12
Open

            if ($revisedAttempt->getTrackExercise() === $this) {

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

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAttemptByQuestionId(int $questionId): ?TrackEAttempt

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->revisedAttempts->contains($revisedAttempt)) {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setQuestionsToCheck(string $questionsToCheck): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->score;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getMaxScore(): float

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setCourse(Course $course): self

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSession(?Session $session): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function isRevised(): bool

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->quiz = $cQuiz;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getDataTracking(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setStartDate(DateTime $startDate): self

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addAttempt(TrackEAttempt $attempt): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $revisedAttempt->setTrackExercise(null);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->origLpItemViewId = $origLpItemViewId;

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

        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 getExeDate(): DateTime

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

    {

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

        return $this->quiz;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUserIp(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setExeDate(DateTime $exeDate): self

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setStatus(string $status): self

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 getOrigLpItemId(): 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

        $this->exeDuration = $exeDuration;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStepsCounter(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->origLpId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setMaxScore(float $maxScore): 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 at least 8 spaces, found 4
Open

    {

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

            $this->revisedAttempts->add($revisedAttempt);

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->attempts->contains($attempt)) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getRevisedAttempts(): Collection

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

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStatus(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->exeId;

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

    {

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

        return $this->attempts;

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

            $attempt->setTrackEExercise($this);

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

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

        return $this->questionsToCheck;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getScore(): float

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

        $this->maxScore = $maxScore;

Line indented incorrectly; expected 12 spaces, found 8
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 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

        $criteria->where(Criteria::expr()->eq('questionId', $questionId))->setMaxResults(1);

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

        $this->questionsToCheck = $questionsToCheck;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getExeId(): int

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

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

    {

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!empty($attempt)) {

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 getUser(): User

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

        $this->user = $user;

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

            $this->attempts[] = $attempt;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function removeRevisedAttempt(TrackEAttemptQualify $revisedAttempt): static

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setScore(float $score): self

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

        return $this->maxScore;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCourse(): Course

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSession(): ?Session

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

        return $this->session;

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

        $this->session = $session;

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

        $attempt = $this->attempts->matching($criteria)->first();

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->revisedAttempts->removeElement($revisedAttempt)) {

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

        return $this->revisedAttempts->count() > 0;

There are no issues that match your filters.

Category
Status