chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/SocialPostFeedback.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'socialPostsFeedbacks')]

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

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

#[Index(name: 'idx_social_post_uid_spid', columns: ['social_post_id', 'user_id'])]

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\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]

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

    #[ORM\Column(name: 'liked', type: 'boolean', options: ['default' => false])]

Missing function doc comment
Open

    public function getUpdatedAt(): DateTime

Missing function doc comment
Open

    public function setSocialPost(SocialPost $socialPost): 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: 'updated_at', type: 'datetime', nullable: false)]

Missing function doc comment
Open

    public function setLiked(bool $liked): self

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

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

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

class SocialPostFeedback

Missing function doc comment
Open

    public function getId(): int

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

    #[ORM\Column(name: 'disliked', type: 'boolean', options: ['default' => false])]

Missing function doc comment
Open

    public function setUpdatedAt(DateTime $updatedAt): self

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

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

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

#[ORM\Entity]

Missing function doc comment
Open

    public function isDisliked(): bool

Missing function doc comment
Open

    public function setDisliked(bool $disliked): self

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

    #[Gedmo\Timestampable(on: 'update')]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getSocialPost(): SocialPost

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

    #[ORM\ManyToOne(targetEntity: SocialPost::class, inversedBy: 'feedbacks')]

Missing function doc comment
Open

    public function isLiked(): bool

There are no issues that match your filters.

Category
Status