chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

Missing function doc comment
Open

    public function setQuestion(CSurveyQuestion $question): self

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

    #[ORM\ManyToOne(targetEntity: CSurvey::class)]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getSurvey(): CSurvey

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

class CSurveyAnswer

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

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

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

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

Missing function doc comment
Open

    public function setOptionId(string $optionId): self

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

    #[ORM\JoinColumn(name: 'question_id', referencedColumnName: 'iid')]

Missing function doc comment
Open

    public function getSessionId(): ?int

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

    public function setSessionId(?int $sessionId = null): static

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: 'iid', type: 'integer')]

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\ManyToOne(targetEntity: CSurveyQuestion::class, inversedBy: 'answers')]

Missing function doc comment
Open

    public function setSurvey(CSurvey $survey): self

Missing function doc comment
Open

    public function getOptionId(): string

Missing function doc comment
Open

    public function getIid(): ?int

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

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

Missing function doc comment
Open

    public function setValue(int $value): self

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

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

Missing function doc comment
Open

    public function getQuestion(): CSurveyQuestion

Missing function doc comment
Open

    public function setUser(string $user): self

Missing function doc comment
Open

    public function setSessionId(?int $sessionId = null): static

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

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

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

There are no issues that match your filters.

Category
Status