chamilo/chamilo-lms

View on GitHub
src/LtiBundle/Entity/LineItem.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function setTool(ExternalTool $tool): static

Missing function doc comment
Open

    public function getEvaluation(): GradebookEvaluation

Missing function doc comment
Open

    public function getResourceId(): string

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

    #[ORM\Column(name: 'tag', type: 'string', nullable: true)]

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

    public function setTool(ExternalTool $tool): static

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

    public function setTag(string $tag): static

Missing function doc comment
Open

    public function setEndDate(DateTime $endDate): static

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

    #[ORM\Id]

Missing function doc comment
Open

    public function setTag(string $tag): static

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

class LineItem

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

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

Missing function doc comment
Open

    public function getTag(): string

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

    #[ORM\OneToOne(targetEntity: GradebookEvaluation::class)]

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

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

Missing function doc comment
Open

    public function getId(): int

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

    public function setEvaluation(GradebookEvaluation $evaluation): static

Missing function doc comment
Open

    public function getStartDate(): DateTime

Missing function doc comment
Open

    public function getTool(): ExternalTool

Missing function doc comment
Open

    public function setResourceId(string $resourceId): static

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

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

Missing function doc comment
Open

    public function setStartDate(DateTime $startDate): static

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 setResourceId(string $resourceId): static

Missing function doc comment
Open

    public function toArray(): array

Add a single space around assignment operators
Open

declare(strict_types=1);

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

    public function setStartDate(DateTime $startDate): static

Missing function doc comment
Open

    public function getEndDate(): DateTime

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

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

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

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

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

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

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

    #[ORM\ManyToOne(targetEntity: ExternalTool::class, inversedBy: 'lineItems')]

Missing function doc comment
Open

    public function setEvaluation(GradebookEvaluation $evaluation): static

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

    #[ORM\Column(name: 'resource_id', type: 'string', nullable: true)]

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

    public function setEndDate(DateTime $endDate): static

There are no issues that match your filters.

Category
Status