From fe215a7b12205ef7f813b2faa0f5147d553c39d2 Mon Sep 17 00:00:00 2001 From: nunoxavier Date: Fri, 14 Jun 2024 14:19:11 +0000 Subject: [PATCH] Fix styling --- src/Helpers/Locker/Locker.php | 4 ++-- src/Helpers/RateLimiterHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Helpers/Locker/Locker.php b/src/Helpers/Locker/Locker.php index 98a3bde..ad3b86c 100644 --- a/src/Helpers/Locker/Locker.php +++ b/src/Helpers/Locker/Locker.php @@ -93,7 +93,7 @@ public function lock(?Closure $closure = null): bool|string if ($lock->block($this->waitForLock, $closure)) { $this->owner = $lock->owner(); - return (string)$this->owner; + return (string) $this->owner; } } catch (LockTimeoutException $exception) { if ($this->executedIfAlreadyLocked && $closure) { @@ -181,7 +181,7 @@ public function isLocked(): bool */ public function restore(): Lock { - return Cache::restoreLock($this->getId(), (string)$this->owner); + return Cache::restoreLock($this->getId(), (string) $this->owner); } /** diff --git a/src/Helpers/RateLimiterHelper.php b/src/Helpers/RateLimiterHelper.php index 40f91e8..e79129a 100644 --- a/src/Helpers/RateLimiterHelper.php +++ b/src/Helpers/RateLimiterHelper.php @@ -35,7 +35,7 @@ public function __construct( /** * Forwards the call to the RateLimiter instance. * - * @param array $arguments + * @param array $arguments * @return mixed */ public function __call(string $name, array $arguments)