Skip to content

Commit ebf081d

Browse files
committed
formatting
1 parent 95d20f0 commit ebf081d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Concerns/InteractsWithCookies.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ public function cookie($name, $value = null, $expiry = null, array $options = []
3131
}
3232

3333
if ($cookie) {
34-
$decryptedValueCookieValue = decrypt(rawurldecode($cookie['value']), $unserialize = false);
35-
$hasValuePrefix = strpos($decryptedValueCookieValue, CookieValuePrefix::create($name, Crypt::getKey())) === 0;
34+
$decryptedValue = decrypt(rawurldecode($cookie['value']), $unserialize = false);
3635

37-
return ($hasValuePrefix) ? CookieValuePrefix::remove($decryptedValueCookieValue) : $decryptedValueCookieValue;
36+
$hasValuePrefix = strpos($decryptedValue, CookieValuePrefix::create($name, Crypt::getKey())) === 0;
37+
38+
return $hasValuePrefix ? CookieValuePrefix::remove($decryptedValue) : $decryptedValue;
3839
}
3940
}
4041

0 commit comments

Comments
 (0)