Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk authored and github-actions[bot] committed Apr 13, 2022
1 parent 53f84e4 commit 2a1fe96
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Dto/SegmentPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ class SegmentPayload extends DataTransferObject

public function toSegment(): array
{
return array_merge([
return array_merge(
[
'event' => $this->name,
'properties' => $this->properties,
'anonymousId' => $this->actor ?? Str::uuid()->__toString()
'anonymousId' => $this->actor ?? Str::uuid()->__toString(),
],
($this->actor ? ['userId' => $this->actor] : []),
($this->messageId ? ['messageId' => $this->messageId] : []),
Expand Down Expand Up @@ -68,7 +69,7 @@ public function messageId(?string $messageId): self

return $this;
}

public function track(): bool
{
return $this->sent = Segment::track($this->toSegment());
Expand Down

0 comments on commit 2a1fe96

Please sign in to comment.