Skip to content

Commit 61e0e2a

Browse files
Refactored method
1 parent 05991f2 commit 61e0e2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Concerns/Isolatable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ protected function isolationMutex(): Mutex
2626

2727
protected function isolatedStatusCode(): int
2828
{
29-
return (int) (is_numeric($this->getIsolateOption()) ? $this->getIsolateOption() : self::SUCCESS);
29+
if ($isolate = $this->getIsolateOption()) {
30+
return is_numeric($isolate) ? $isolate : self::SUCCESS;
31+
}
32+
33+
return self::SUCCESS;
3034
}
3135

3236
protected function getIsolateOption(): int|bool

0 commit comments

Comments
 (0)