From fc224fda4132653b894e0797759a4c4473f53370 Mon Sep 17 00:00:00 2001 From: George Steel Date: Sun, 3 Nov 2024 14:03:22 +0000 Subject: [PATCH] Fix minor CS violation Signed-off-by: George Steel --- src/PhpSessionPersistence.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/PhpSessionPersistence.php b/src/PhpSessionPersistence.php index eaf8695..2829c8e 100644 --- a/src/PhpSessionPersistence.php +++ b/src/PhpSessionPersistence.php @@ -28,6 +28,18 @@ use const PHP_SESSION_ACTIVE; /** + * Session persistence using ext-session. + * + * Adapts ext-session to work with PSR-7 by disabling its auto-cookie creation + * (`use_cookies => false`), while simultaneously requiring cookies for session + * handling (`use_only_cookies => true`). The implementation pulls cookies + * manually from the request, and injects a `Set-Cookie` header into the + * response. + * + * Session identifiers are generated using random_bytes (and casting to hex). + * During persistence, if the session regeneration flag is true, a new session + * identifier is created, and the session re-started. + * * @psalm-type SessionConfig = array{ * persistence?: array{ * ext?: array{ @@ -45,18 +57,6 @@ * cookie_httponly?: bool, * cookie_samesite?: string, * } - * - * Session persistence using ext-session. - * - * Adapts ext-session to work with PSR-7 by disabling its auto-cookie creation - * (`use_cookies => false`), while simultaneously requiring cookies for session - * handling (`use_only_cookies => true`). The implementation pulls cookies - * manually from the request, and injects a `Set-Cookie` header into the - * response. - * - * Session identifiers are generated using random_bytes (and casting to hex). - * During persistence, if the session regeneration flag is true, a new session - * identifier is created, and the session re-started. */ class PhpSessionPersistence implements InitializePersistenceIdInterface, SessionPersistenceInterface {