Passed
Push — csp ( 63856a...2ca554 )
by Fabio
06:52 queued 38s
created
framework/Web/THttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
framework/Web/THttpHeadersManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/Web/THttpHeaderCSP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,9 +95,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
framework/Security/TSecurityManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.