@@ -222,7 +222,7 @@ |
||
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | return $this->getFromArray($_SESSION, $name) !== null; |
| 225 | - } |
|
| 225 | + } |
|
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | 228 | * Returns given session variable, or all of them, if no parameters given. |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $this->setSaveHandler($handler); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - $this->lifetime = (int)ini_get('session.gc_maxlifetime'); |
|
| 106 | + $this->lifetime = (int) ini_get('session.gc_maxlifetime'); |
|
| 107 | 107 | $this->isCLI = (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg'); |
| 108 | 108 | |
| 109 | 109 | session_register_shutdown(); |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $result = false; |
| 187 | 187 | |
| 188 | 188 | $checkTime = $time !== null && $this->lifetime > 0; |
| 189 | - if ($checkTime && (time() - (int)$time > $this->lifetime)) { |
|
| 189 | + if ($checkTime && (time() - (int) $time > $this->lifetime)) { |
|
| 190 | 190 | $result = true; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | public function getId(): string |
| 331 | 331 | { |
| 332 | - return (string)session_id(); |
|
| 332 | + return (string) session_id(); |
|
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | /** |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | $result = false; |
| 487 | 487 | |
| 488 | 488 | $checkTime = $time !== null && $this->lifetime > 0; |
| 489 | - if ($checkTime && (time() - (int)$time > $this->lifetime)) { |
|
| 489 | + if ($checkTime && (time() - (int) $time > $this->lifetime)) { |
|
| 490 | 490 | $result = true; |
| 491 | 491 | } |
| 492 | 492 | |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | $array[$key] = []; |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | - $array =& $array[$key]; |
|
| 541 | + $array = & $array[$key]; |
|
| 542 | 542 | } |
| 543 | 543 | |
| 544 | 544 | $array[array_shift($keys)] = $value; |