@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getCookieHttpOnly(): bool |
67 | 67 | { |
68 | - return (bool)ini_get('session.cookie_httponly'); |
|
68 | + return (bool) ini_get('session.cookie_httponly'); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function getUseTransSid(): bool |
146 | 146 | { |
147 | - return (bool)ini_get('session.use_trans_sid'); |
|
147 | + return (bool) ini_get('session.use_trans_sid'); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function getGcLifeTime(): int |
196 | 196 | { |
197 | - return (int)ini_get('session.gc_maxlifetime') / 60; |
|
197 | + return (int) ini_get('session.gc_maxlifetime') / 60; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function iniSet(string $setting, $value) |
204 | 204 | { |
205 | - $result = ini_set($setting, (string)$value); |
|
205 | + $result = ini_set($setting, (string) $value); |
|
206 | 206 | if ($result === false) { |
207 | 207 | throw new RuntimeException(sprintf('Could not set `%s`', $setting)); |
208 | 208 | } |
@@ -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; |