chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

#[ORM\Entity(repositoryClass: CWikiRepository::class)]

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

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

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

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

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

    #[Assert\NotBlank]

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

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

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

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

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

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

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

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

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

#[ORM\Table(name: 'c_wiki', options: ['row_format' => 'DYNAMIC'])]

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

    #[ORM\Column(name: 'content', type: 'text', nullable: false)]

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

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

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\Id]

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

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

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

    #[ORM\Column(name: 'progress', type: 'text', nullable: false)]

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

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

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

    #[ORM\Column(name: 'linksto', 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)]

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

    public function setReflink(string $reflink): static

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

    public function setDtime(DateTime $dtime): static

Missing function doc comment
Open

    public function getVisibilityDisc(): int

Missing function doc comment
Open

    public function setRatinglockDisc(int $ratinglockDisc): static

Missing function doc comment
Open

    public function getScore(): ?int

Missing function doc comment
Open

    public function getIsEditing(): int

Missing function doc comment
Open

    public function setHits(int $hits): static

Missing function doc comment
Open

    public function setCId(int $cId): static

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\Index(columns: ['group_id'], name: 'group_id')]

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

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

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

class CWiki extends AbstractResource implements ResourceInterface, Stringable

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

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

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

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

Missing function doc comment
Open

    public function setReflink(string $reflink): static

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

    public function setVisibilityDisc(int $visibilityDisc): static

Missing function doc comment
Open

    public function setComment(string $comment): static

Missing function doc comment
Open

    public function getUserIp(): string

Missing function doc comment
Open

    public function setSessionId(int $sessionId): static

Missing function doc comment
Open

    public function addCategory(CWikiCategory $category): self

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

    #[Assert\NotBlank]

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

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

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

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

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

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

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getPageId(): ?int

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

    public function setContent(string $content): static

Missing function doc comment
Open

    public function getAddlock(): int

Missing function doc comment
Open

    public function setVisibility(int $visibility): static

Missing function doc comment
Open

    public function setVisibilityDisc(int $visibilityDisc): static

Missing function doc comment
Open

    public function setProgress(string $progress): static

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

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

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

    #[ORM\ManyToMany(targetEntity: CWikiCategory::class, inversedBy: 'wikiPages')]

Missing function doc comment
Open

    public function setTitle(string $title): static

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

    public function setUserId(int $userId): static

Missing function doc comment
Open

    public function getAddlockDisc(): int

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

    public function setAssignment(int $assignment): static

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

    public function setProgress(string $progress): static

Missing function doc comment
Open

    public function setScore(int $score): static

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

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

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

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

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

    #[ORM\Column(name: 'comment', type: 'text', nullable: false)]

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

    public function setPageId(int $pageId): static

Missing function doc comment
Open

    public function getContent(): string

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

    public function setComment(string $comment): static

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

    public function setTimeEdit(DateTime $timeEdit): static

Missing function doc comment
Open

    public function getResourceName(): string

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getGroupId(): ?int

Missing function doc comment
Open

    public function getVisibility(): int

Missing function doc comment
Open

    public function getVersion(): ?int

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

    public function setSessionId(int $sessionId): static

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getUserId(): int

Missing function doc comment
Open

    public function getDtime(): ?DateTime

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

    public function setEditlock(int $editlock): static

Missing function doc comment
Open

    public function setAddlockDisc(int $addlockDisc): static

Missing function doc comment
Open

    public function setLinksto(string $linksto): static

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

    public function setAddlock(int $addlock): static

Missing function doc comment
Open

    public function getRatinglockDisc(): int

Missing function doc comment
Open

    public function getComment(): string

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

    public function setIsEditing(int $isEditing): static

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

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

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

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

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

    #[ORM\JoinTable(name: 'c_wiki_rel_category')]

Missing function doc comment
Open

    public function setGroupId(int $groupId): static

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

    public function setRatinglockDisc(int $ratinglockDisc): static

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

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

Missing function doc comment
Open

    public function setAssignment(int $assignment): static

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

    public function setHits(int $hits): static

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

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

    #[ORM\Column(name: 'tag', type: 'text', nullable: false)]

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

    #[ORM\InverseJoinColumn(name: 'category_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function setContent(string $content): static

Missing function doc comment
Open

    public function setVersion(int $version): static

Missing function doc comment
Open

    public function getCId(): int

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

    public function setCId(int $cId): static

Missing function doc comment
Open

    public function getIid(): ?int

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

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

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

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

Missing function doc comment
Open

    public function getReflink(): string

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

    public function setGroupId(int $groupId): static

Missing function doc comment
Open

    public function getAssignment(): int

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

    public function setVersion(int $version): static

Missing function doc comment
Open

    public function getTag(): string

Missing function doc comment
Open

    public function getEditlock(): int

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

    public function setAddlockDisc(int $addlockDisc): static

Missing function doc comment
Open

    public function setIsEditing(int $isEditing): 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 getSessionId(): ?int

Missing function doc comment
Open

    public function setAddlock(int $addlock): static

Missing function doc comment
Open

    public function setEditlock(int $editlock): static

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

    public function setUserIp(string $userIp): static

Missing function doc comment
Open

    public function setResourceName(string $name): self

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

    public function setTitle(string $title): static

Missing function doc comment
Open

    public function setPageId(int $pageId): static

Missing function doc comment
Open

    public function setUserId(int $userId): static

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

    public function setVisibility(int $visibility): static

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

    public function setScore(int $score): static

Missing function doc comment
Open

    public function setTimeEdit(DateTime $timeEdit): static

Missing function doc comment
Open

    public function getLinksto(): string

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

    public function setLinksto(string $linksto): static

Missing function doc comment
Open

    public function setTag(string $tag): static

Missing function doc comment
Open

    public function setUserIp(string $userIp): static

Missing function doc comment
Open

    public function setDtime(DateTime $dtime): static

Missing function doc comment
Open

    public function getProgress(): string

Missing function doc comment
Open

    public function getTimeEdit(): ?DateTime

Missing function doc comment
Open

    public function getHits(): ?int

There are no issues that match your filters.

Category
Status