From 6f33dc795246b1bf77ad73c502be64db677db422 Mon Sep 17 00:00:00 2001 From: binaryk Date: Tue, 23 Aug 2022 09:16:46 +0000 Subject: [PATCH] Fix styling --- src/LaravelSegmentManager.php | 6 +++--- tests/LaravelSegmentTest.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/LaravelSegmentManager.php b/src/LaravelSegmentManager.php index 33adad5..a0a36b1 100755 --- a/src/LaravelSegmentManager.php +++ b/src/LaravelSegmentManager.php @@ -40,9 +40,9 @@ public function alias(string $previousId, string $userId): void public function identify(string $userId, array $data) { - Segment::identify(array( + Segment::identify([ "userId" => $userId, - "traits" => $data - )); + "traits" => $data, + ]); } } diff --git a/tests/LaravelSegmentTest.php b/tests/LaravelSegmentTest.php index 073cb1e..7171b8a 100644 --- a/tests/LaravelSegmentTest.php +++ b/tests/LaravelSegmentTest.php @@ -2,6 +2,7 @@ use BinarCode\LaravelSegment\Dto\SegmentPayload; use BinarCode\LaravelSegment\Facades\LaravelSegment; + use function PHPUnit\Framework\assertInstanceOf; it('can send instantiate payload', function () {