Skip to content

Commit 7a2ab8c

Browse files
committed
Fix CS
1 parent 3bdf327 commit 7a2ab8c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

RedirectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct($url, $status = 302, $headers = [])
4242
throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status));
4343
}
4444

45-
if (301 == $status && !\array_key_exists('cache-control', array_change_key_case($headers, \CASE_LOWER))) {
45+
if (301 == $status && !\array_key_exists('cache-control', array_change_key_case($headers, CASE_LOWER))) {
4646
$this->headers->remove('cache-control');
4747
}
4848
}

Session/Storage/Handler/AbstractSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function destroy($sessionId)
133133
}
134134
if (!headers_sent() && filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN)) {
135135
if (!$this->sessionName) {
136-
throw new \LogicException(sprintf('Session name cannot be empty, did you forget to call "parent::open()" in "%s"?.', \get_class($this)));
136+
throw new \LogicException(sprintf('Session name cannot be empty, did you forget to call "parent::open()" in "%s"?.', static::class));
137137
}
138138
$sessionCookie = sprintf(' %s=', urlencode($this->sessionName));
139139
$sessionCookieWithId = sprintf('%s%s;', $sessionCookie, urlencode($sessionId));

Session/Storage/NativeSessionStorage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function start()
137137
return true;
138138
}
139139

140-
if (\PHP_SESSION_ACTIVE === session_status()) {
140+
if (PHP_SESSION_ACTIVE === session_status()) {
141141
throw new \RuntimeException('Failed to start the session: already started by PHP.');
142142
}
143143

@@ -193,7 +193,7 @@ public function setName($name)
193193
public function regenerate($destroy = false, $lifetime = null)
194194
{
195195
// Cannot regenerate the session ID for non-active sessions.
196-
if (\PHP_SESSION_ACTIVE !== session_status()) {
196+
if (PHP_SESSION_ACTIVE !== session_status()) {
197197
return false;
198198
}
199199

@@ -341,7 +341,7 @@ public function isStarted()
341341
*/
342342
public function setOptions(array $options)
343343
{
344-
if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) {
344+
if (headers_sent() || PHP_SESSION_ACTIVE === session_status()) {
345345
return;
346346
}
347347

@@ -401,7 +401,7 @@ public function setSaveHandler($saveHandler = null)
401401
}
402402
$this->saveHandler = $saveHandler;
403403

404-
if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) {
404+
if (headers_sent() || PHP_SESSION_ACTIVE === session_status()) {
405405
return;
406406
}
407407

Session/Storage/Proxy/AbstractProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function isWrapper()
6565
*/
6666
public function isActive()
6767
{
68-
return \PHP_SESSION_ACTIVE === session_status();
68+
return PHP_SESSION_ACTIVE === session_status();
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)