chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function setMaxScore(string $maxScore): self

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

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

Missing function doc comment
Open

    public function setStartTime(int $startTime): self

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setView(CLpView $view): self

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: 'score', type: 'float', precision: 10, scale: 0, nullable: false)]

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

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

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

    #[ORM\Column(name: 'core_exit', type: 'string', length: 32, nullable: false, options: ['default' => 'none'])]

Missing function doc comment
Open

    public function getItem(): CLpItem

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

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

Missing function doc comment
Open

    public function setViewCount(int $viewCount): self

Missing function doc comment
Open

    public function setSuspendData(string $suspendData): self

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

    #[ORM\Column(name: 'status', type: 'string', length: 32, nullable: false, options: ['default' => 'not attempted'])]

Missing function doc comment
Open

    public function setTotalTime(int $totalTime): self

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

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

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

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

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

class CLpItemView

Missing function doc comment
Open

    public function setStatus(string $status): self

Missing function doc comment
Open

    public function setCoreExit(string $coreExit): self

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setScore(float $score): self

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: 'max_score', type: 'string', length: 8, nullable: true)]

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

Missing function doc comment
Open

    public function setLessonLocation(string $lessonLocation): self

Missing function doc comment
Open

    public function setItem(CLpItem $item): self

Missing function doc comment
Open

    public function getView(): CLpView

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

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

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

There are no issues that match your filters.

Category
Status