src/CoreBundle/Entity/SocialPost.php
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'receivedSocialPosts')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Gedmo\Timestampable(on: 'update')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]
- Exclude checks
Missing function doc comment Open
Open
public function setId(int $id): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['group_receiver_id'], name: 'idx_social_post_group')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read'])]
- Exclude checks
Missing function doc comment Open
Open
public function getStatus(): int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'social_post')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Id]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\Choice([
- Exclude checks
Missing function doc comment Open
Open
public function setUserReceiver(?User $userReceiver): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['sender_id'], name: 'idx_social_post_sender')]
- Exclude checks
Missing function doc comment Open
Open
public function setStatus(int $status): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(filterClass: ExistsFilter::class, properties: ['parent'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'sentSocialPosts')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'subject', type: 'text', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(type: 'text')]
- Exclude checks
Missing function doc comment Open
Open
public function getUserReceiver(): ?User
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity(repositoryClass: SocialPostRepository::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(type: 'datetime')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(targetEntity: SocialPostFeedback::class, mappedBy: 'socialPost')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post_feedback'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['type'], name: 'idx_social_post_type')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:write', 'social_post:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post:write'])]
- Exclude checks
Missing function doc comment Open
Open
public function setSender(User $sender): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:write'])]
- Exclude checks
Missing function doc comment Open
Open
public function getSendDate(): DateTime
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'id', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\Choice([self::STATUS_SENT, self::STATUS_DELETED], message: 'Choose a status.')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'parent_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post_feedback'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Missing function doc comment Open
Open
public function getSender(): User
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(type: 'smallint')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(filterClass: SocialWallFilter::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(filterClass: OrderFilter::class, properties: ['sendDate'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(type: 'smallint')]
- Exclude checks
Missing function doc comment Open
Open
public function getId(): int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(filterClass: SearchFilter::class, properties: ['parent' => 'exact', 'type' => 'exact'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['user_receiver_id'], name: 'idx_social_post_user')]
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class SocialPost
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(type: 'datetime')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['social_post:read', 'social_post:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Usergroup::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(targetEntity: self::class, mappedBy: 'parent')]
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Missing function doc comment Open
Open
public function setSendDate(DateTime $sendDate): self
- Exclude checks
Missing function doc comment Open
Open
public function addFeedback(SocialPostFeedback $feedback): self
- Exclude checks
Missing function doc comment Open
Open
public function setType(int $type): self
- Exclude checks
Missing function doc comment Open
Open
public function setFeedbacks(Collection $feedbacks): self
- Exclude checks
Missing function doc comment Open
Open
public function getContent(): string
- Exclude checks
Missing function doc comment Open
Open
public function getFeedbacks(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function getParent(): ?self
- Exclude checks
Missing function doc comment Open
Open
public function getGroupReceiver(): ?Usergroup
- Exclude checks
Missing function doc comment Open
Open
public function getSubject(): ?string
- Exclude checks
Missing function doc comment Open
Open
public function setContent(string $content): self
- Exclude checks
Missing function doc comment Open
Open
public function getCountFeedbackDislikes(): int
- Exclude checks
Missing function doc comment Open
Open
public function addChild(self $child): self
- Exclude checks
Missing function doc comment Open
Open
public function addAttachment(SocialPostAttachment $attachment): self
- Exclude checks
Missing function doc comment Open
Open
public function setParent(?self $parent): self
- Exclude checks
Missing function doc comment Open
Open
public function setUpdatedAt(DateTime $updatedAt): self
- Exclude checks
Missing function doc comment Open
Open
public function getCountFeedbackLikes(): int
- Exclude checks
Missing function doc comment Open
Open
public function setSubject(?string $subject): self
- Exclude checks
Missing function doc comment Open
Open
public function getUpdatedAt(): DateTime
- Exclude checks
Missing function doc comment Open
Open
public function setGroupReceiver(?Usergroup $groupReceiver): self
- Exclude checks
Missing function doc comment Open
Open
public function getType(): int
- Exclude checks
Missing function doc comment Open
Open
public function getAttachments(): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const TYPE_WALL_COMMENT = 2;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Usergroup $groupReceiver = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->countFeedbackDislikes = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->id = $id;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sender = $sender;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sendDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const TYPE_PROMOTED_MESSAGE = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $id = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $children;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getId(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class SocialPost
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected DateTime $updatedAt;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $feedbacks;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_DELETED = 2;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?User $userReceiver;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
], message: 'Choose a valid type.')]
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->type = self::TYPE_WALL_POST;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->attachments = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = $status;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $status;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->userReceiver = null;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendDate = new DateTime();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->updatedAt = $this->sendDate;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?string $subject = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSendDate(): DateTime
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $content;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $countFeedbackLikes = 0;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const TYPE_WALL_POST = 1;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_SENT = 1;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $countFeedbackDislikes = 0;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->countFeedbackLikes = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->id;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->parent = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setId(int $id): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUserReceiver(): ?User
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->status;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected DateTime $sendDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sender;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->userReceiver;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUserReceiver(?User $userReceiver): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = self::STATUS_SENT;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected User $sender;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->feedbacks = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
private Collection $attachments;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getStatus(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const TYPE_GROUP_MESSAGE = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $type;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?SocialPost $parent = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->groupReceiver = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected User $wallOwner;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->userReceiver = $userReceiver;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSender(): User
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSender(User $sender): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setStatus(int $status): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSendDate(DateTime $sendDate): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addAttachment(SocialPostAttachment $attachment): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendDate = $sendDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUpdatedAt(DateTime $updatedAt): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria->where(Criteria::expr()->eq('disliked', true));
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addChild(self $child): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSubject(?string $subject): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->attachments[] = $attachment;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->updatedAt;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria->where(Criteria::expr()->eq('liked', true));
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getParent(): ?self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getGroupReceiver(): ?Usergroup
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->groupReceiver = $groupReceiver;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCountFeedbackLikes(): int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getType(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getFeedbacks(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->parent = $parent;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->children;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->subject;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setGroupReceiver(?Usergroup $groupReceiver): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->type;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setType(int $type): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->content;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSubject(): ?string
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->feedbacks;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->feedbacks[] = $feedback;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->attachments;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$feedback->setSocialPost($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCountFeedbackDislikes(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->parent;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getChildren(): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getContent(): string
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->type = $type;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setParent(?self $parent): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->groupReceiver;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setContent(string $content): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUpdatedAt(): DateTime
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->feedbacks = $feedbacks;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->feedbacks->matching($criteria)->count();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->content = $content;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setFeedbacks(Collection $feedbacks): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addFeedback(SocialPostFeedback $feedback): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$child->setParent($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->attachments->contains($attachment)) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->subject = $subject;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->updatedAt = $updatedAt;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->feedbacks->contains($feedback)) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAttachments(): Collection
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->feedbacks->matching($criteria)->count();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->children[] = $child;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$attachment->setSocialPost($this);
- Exclude checks