@@ -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; |