chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Showing 27 of 27 total issues

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

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

Missing function doc comment
Open

public function setTitle(string $title): self

Missing function doc comment
Open

public function setShortCutNode(ResourceNode $shortCutNode): self

Missing function doc comment
Open

public function getId(): int

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

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

Missing function doc comment
Open

public function getShortCutNode(): ResourceNode

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

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

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

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

Missing function doc comment
Open

public function getType(): string

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

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

Missing function doc comment
Open

public function __toString(): string

Missing function doc comment
Open

public function getUrl(): string

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

#[ORM\OneToOne(targetEntity: ResourceNode::class, inversedBy: 'shortCut')]

Missing function doc comment
Open

public function setResourceName(string $name): self

Missing function doc comment
Open

public function getResourceIdentifier(): int

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

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

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

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

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

#[Assert\NotBlank]

Missing function doc comment
Open

public function getResourceName(): string

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\Entity(repositoryClass: CShortcutRepository::class)]

Missing function doc comment
Open

public function getTitle(): string

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

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

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

class CShortcut extends AbstractResource implements ResourceInterface, Stringable

Missing function doc comment
Open

public function getTool(): string

There are no issues that match your filters.

Category
Status