Skip to content

Commit 2a1fe96

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 53f84e4 commit 2a1fe96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Dto/SegmentPayload.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ class SegmentPayload extends DataTransferObject
2424

2525
public function toSegment(): array
2626
{
27-
return array_merge([
27+
return array_merge(
28+
[
2829
'event' => $this->name,
2930
'properties' => $this->properties,
30-
'anonymousId' => $this->actor ?? Str::uuid()->__toString()
31+
'anonymousId' => $this->actor ?? Str::uuid()->__toString(),
3132
],
3233
($this->actor ? ['userId' => $this->actor] : []),
3334
($this->messageId ? ['messageId' => $this->messageId] : []),
@@ -68,7 +69,7 @@ public function messageId(?string $messageId): self
6869

6970
return $this;
7071
}
71-
72+
7273
public function track(): bool
7374
{
7475
return $this->sent = Segment::track($this->toSegment());

0 commit comments

Comments
 (0)