From 8ddce9840b28deaf49b87beacd43ba4f9bd67665 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 18 Sep 2025 20:38:32 -0400 Subject: [PATCH] Use constructor property promotion --- src/Http/Middleware/InlineQueue.php | 36 +++++++---------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/src/Http/Middleware/InlineQueue.php b/src/Http/Middleware/InlineQueue.php index e7bb2b4..45d1fe6 100644 --- a/src/Http/Middleware/InlineQueue.php +++ b/src/Http/Middleware/InlineQueue.php @@ -40,37 +40,17 @@ class InlineQueue implements Stringable public const TOKEN_KEY = 'queueittoken'; - protected ?string $eventId = null; - - protected ?string $queueDomain = null; - - protected ?string $cookieDomain = null; - - protected int $cookieValidityMinute = 15; - - protected bool $extendCookieValidity = true; - - protected ?string $culture = null; - - protected ?string $layoutName = null; - public function __construct( - ?string $eventId = null, - ?string $queueDomain = null, - ?string $cookieDomain = null, - int $cookieValidityMinute = 15, - bool $extendCookieValidity = true, - ?string $culture = null, - ?string $layoutName = null + protected ?string $eventId = null, + protected ?string $queueDomain = null, + protected ?string $cookieDomain = null, + protected int $cookieValidityMinute = 15, + protected bool $extendCookieValidity = true, + protected ?string $culture = null, + protected ?string $layoutName = null, ) { - $this->layoutName = $layoutName; - $this->culture = $culture; - $this->extendCookieValidity = $extendCookieValidity; - $this->cookieValidityMinute = $cookieValidityMinute; - $this->cookieDomain = $cookieDomain; - $this->queueDomain = $queueDomain; - $this->eventId = $eventId; + // } /**