chamilo/chamilo-lms

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

Summary

Maintainability
Test Coverage

Showing 11 of 11 total issues

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

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

Missing function doc comment
New

public function getCustomImage(): ?Asset

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

#[ORM\JoinColumn(name: 'custom_image_id', referencedColumnName: 'id', onDelete: 'SET NULL')]

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

#[ORM\ManyToOne(targetEntity: Asset::class, cascade: ['remove'])]

Missing blank line before return statement
New

return $this;

Missing function doc comment
New

public function setCustomImage(?Asset $customImage): self

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

return $this->customImage;

Line indented incorrectly; expected 8 spaces, found 4
New

private ?Asset $customImage = null;

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

$this->customImage = $customImage;

Line indented incorrectly; expected 8 spaces, found 4
New

public function getCustomImage(): ?Asset

Line indented incorrectly; expected 8 spaces, found 4
New

public function setCustomImage(?Asset $customImage): self
Category
Status