@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param int $max_lifetime the number of seconds after which data will be seen as 'garbage' and cleaned up. |
67 | 67 | * @return false|int whether session is GCed successfully |
68 | 68 | */ |
69 | - public function gc(int $max_lifetime): int|false |
|
69 | + public function gc(int $max_lifetime): int | false |
|
70 | 70 | { |
71 | 71 | return $this->_session->_gc($max_lifetime); |
72 | 72 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param string $id session ID |
88 | 88 | * @return false|string the session data |
89 | 89 | */ |
90 | - public function read(string $id): string|false |
|
90 | + public function read(string $id): string | false |
|
91 | 91 | { |
92 | 92 | return $this->_session->_read($id); |
93 | 93 | } |
@@ -506,7 +506,7 @@ |
||
506 | 506 | $this->ensureHttpHeaderSent(); |
507 | 507 | $this->ensureContentTypeHeaderSent(); |
508 | 508 | $headersManager = $this->getHeadersManagerModule(); |
509 | - if($headersManager !== null) { |
|
509 | + if ($headersManager !== null) { |
|
510 | 510 | $headersManager->ensureHeadersSent(); |
511 | 511 | } |
512 | 512 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | */ |
133 | 133 | protected function sendHeaders() |
134 | 134 | { |
135 | - foreach($this->_headers as $header) |
|
135 | + foreach ($this->_headers as $header) |
|
136 | 136 | { |
137 | 137 | $this->getResponse()->appendHeader($header->getName() . ': ' . $header->getValue()); |
138 | 138 | } |
@@ -95,9 +95,9 @@ |
||
95 | 95 | */ |
96 | 96 | public function getValue() |
97 | 97 | { |
98 | - $nonce = '\'nonce-' . Prado::getApplication()->getSecurityManager()->getCSPNonce() .'\''; |
|
98 | + $nonce = '\'nonce-' . Prado::getApplication()->getSecurityManager()->getCSPNonce() . '\''; |
|
99 | 99 | $ret = ''; |
100 | - foreach($this->_policies as $name => $value) { |
|
100 | + foreach ($this->_policies as $name => $value) { |
|
101 | 101 | $ret .= $name . ': ' . str_replace(self::NONCE, $nonce, $value) . '; '; |
102 | 102 | } |
103 | 103 | return $ret; |
@@ -280,7 +280,7 @@ |
||
280 | 280 | public function getCSPNonce() |
281 | 281 | { |
282 | 282 | static $nonce; |
283 | - if($nonce === null) { |
|
283 | + if ($nonce === null) { |
|
284 | 284 | $nonce = $this->generateRandomKey(); |
285 | 285 | } |
286 | 286 | return $nonce; |