chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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\ManyToOne(targetEntity: User::class, inversedBy: 'receivedSocialPosts')]

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

    #[ORM\JoinColumn(nullable: true)]

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

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

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

    #[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]

Missing function doc comment
Open

    public function setId(int $id): self

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

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

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

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

Missing function doc comment
Open

    public function getStatus(): int

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

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

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

    #[Assert\Choice([

Missing function doc comment
Open

    public function setUserReceiver(?User $userReceiver): self

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

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

Missing function doc comment
Open

    public function setStatus(int $status): self

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

#[ApiFilter(filterClass: ExistsFilter::class, properties: ['parent'])]

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

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

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

    #[ORM\Column(name: 'subject', type: 'text', nullable: true)]

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

    #[ORM\Column(type: 'text')]

Missing function doc comment
Open

    public function getUserReceiver(): ?User

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

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

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

    #[ORM\JoinColumn(nullable: false)]

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

    #[ORM\Column(type: 'datetime')]

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

    #[ORM\OneToMany(targetEntity: SocialPostFeedback::class, mappedBy: 'socialPost')]

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

    #[Groups(['social_post:read', 'social_post_feedback'])]

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

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

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

    #[Groups(['social_post:write', 'social_post:read'])]

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

    #[Groups(['social_post:read', 'social_post:write'])]

Missing function doc comment
Open

    public function setSender(User $sender): self

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

    #[ORM\JoinColumn(onDelete: 'CASCADE')]

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

    #[Groups(['social_post:write'])]

Missing function doc comment
Open

    public function getSendDate(): DateTime

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

#[ApiResource(

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

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

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

    #[Groups(['social_post:read', 'social_post:write'])]

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

    #[Assert\Choice([self::STATUS_SENT, self::STATUS_DELETED], message: 'Choose a status.')]

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

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

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

    #[Groups(['social_post:read', 'social_post_feedback'])]

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

    #[ORM\OneToMany(

Missing function doc comment
Open

    public function getSender(): User

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

    #[ORM\Column(type: 'smallint')]

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

    #[ApiFilter(filterClass: SocialWallFilter::class)]

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

#[ApiFilter(filterClass: OrderFilter::class, properties: ['sendDate'])]

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

    #[ORM\Column(type: 'smallint')]

Missing function doc comment
Open

    public function getId(): int

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

#[ApiFilter(filterClass: SearchFilter::class, properties: ['parent' => 'exact', 'type' => 'exact'])]

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

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

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

class SocialPost

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

    #[Groups(['social_post:read', 'social_post:write'])]

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

    #[ORM\Column(type: 'datetime')]

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

    #[Groups(['social_post:read', 'social_post:write'])]

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

    #[ORM\ManyToOne(targetEntity: Usergroup::class)]

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

    #[ORM\OneToMany(targetEntity: self::class, mappedBy: 'parent')]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setSendDate(DateTime $sendDate): self

Missing function doc comment
Open

    public function addFeedback(SocialPostFeedback $feedback): self

Missing function doc comment
Open

    public function setType(int $type): self

Missing function doc comment
Open

    public function setFeedbacks(Collection $feedbacks): self

Missing function doc comment
Open

    public function getContent(): string

Missing function doc comment
Open

    public function getFeedbacks(): Collection

Missing function doc comment
Open

    public function getParent(): ?self

Missing function doc comment
Open

    public function getGroupReceiver(): ?Usergroup

Missing function doc comment
Open

    public function getSubject(): ?string

Missing function doc comment
Open

    public function setContent(string $content): self

Missing function doc comment
Open

    public function getCountFeedbackDislikes(): int

Missing function doc comment
Open

    public function addChild(self $child): self

Missing function doc comment
Open

    public function addAttachment(SocialPostAttachment $attachment): self

Missing function doc comment
Open

    public function setParent(?self $parent): self

Missing function doc comment
Open

    public function setUpdatedAt(DateTime $updatedAt): self

Missing function doc comment
Open

    public function getCountFeedbackLikes(): int

Missing function doc comment
Open

    public function setSubject(?string $subject): self

Missing function doc comment
Open

    public function getUpdatedAt(): DateTime

Missing function doc comment
Open

    public function setGroupReceiver(?Usergroup $groupReceiver): self

Missing function doc comment
Open

    public function getType(): int

Missing function doc comment
Open

    public function getAttachments(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const TYPE_WALL_COMMENT = 2;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?Usergroup $groupReceiver = null;

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

        $this->countFeedbackDislikes = 0;

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

        $this->id = $id;

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

        $this->sender = $sender;

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

        return $this->sendDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const TYPE_PROMOTED_MESSAGE = 4;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $children;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getId(): int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 0
Open

class SocialPost

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $updatedAt;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $feedbacks;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 4 spaces, found 0
Open

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const STATUS_DELETED = 2;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?User $userReceiver;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    ], message: 'Choose a valid type.')]

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

        $this->type = self::TYPE_WALL_POST;

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

        $this->attachments = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->status = $status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $status;

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

        $this->userReceiver = null;

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

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

        $this->sendDate = new DateTime();

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

        $this->updatedAt = $this->sendDate;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $subject = null;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSendDate(): DateTime

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $content;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $countFeedbackLikes = 0;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const TYPE_WALL_POST = 1;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const STATUS_SENT = 1;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $countFeedbackDislikes = 0;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    )]

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        $this->countFeedbackLikes = 0;

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

        return $this->id;

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

        $this->parent = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setId(int $id): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUserReceiver(): ?User

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

        return $this->status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $sendDate;

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

        return $this->sender;

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

        return $this->userReceiver;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUserReceiver(?User $userReceiver): self

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

        $this->status = self::STATUS_SENT;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected User $sender;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        $this->feedbacks = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    private Collection $attachments;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStatus(): int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const TYPE_GROUP_MESSAGE = 3;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $type;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?SocialPost $parent = null;

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

        $this->groupReceiver = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected User $wallOwner;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->userReceiver = $userReceiver;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSender(): User

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSender(User $sender): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setStatus(int $status): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSendDate(DateTime $sendDate): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $criteria = Criteria::create();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addAttachment(SocialPostAttachment $attachment): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

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

        return $this;

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

        $this->sendDate = $sendDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUpdatedAt(DateTime $updatedAt): self

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

        $criteria->where(Criteria::expr()->eq('disliked', true));

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addChild(self $child): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSubject(?string $subject): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $this->attachments[] = $attachment;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->updatedAt;

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

        return $this;

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

        $criteria->where(Criteria::expr()->eq('liked', true));

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getParent(): ?self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getGroupReceiver(): ?Usergroup

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

        $this->groupReceiver = $groupReceiver;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCountFeedbackLikes(): int

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

        $criteria = Criteria::create();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getType(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getFeedbacks(): Collection

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

        $this->parent = $parent;

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

        return $this;

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

        return $this->children;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->subject;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setGroupReceiver(?Usergroup $groupReceiver): self

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

        return $this->type;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setType(int $type): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this->content;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSubject(): ?string

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

        return $this->feedbacks;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $this->feedbacks[] = $feedback;

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

        return $this->attachments;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $feedback->setSocialPost($this);

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCountFeedbackDislikes(): int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this->parent;

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getChildren(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getContent(): string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        $this->type = $type;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setParent(?self $parent): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this->groupReceiver;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setContent(string $content): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUpdatedAt(): DateTime

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

        $this->feedbacks = $feedbacks;

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

        return $this->feedbacks->matching($criteria)->count();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        $this->content = $content;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setFeedbacks(Collection $feedbacks): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addFeedback(SocialPostFeedback $feedback): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $child->setParent($this);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->attachments->contains($attachment)) {

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

        $this->subject = $subject;

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

        $this->updatedAt = $updatedAt;

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->feedbacks->contains($feedback)) {

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAttachments(): Collection

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

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

        return $this->feedbacks->matching($criteria)->count();

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

        $this->children[] = $child;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $attachment->setSocialPost($this);

There are no issues that match your filters.

Category
Status