Passed
Push — master ( f29569...0ffa59 )
by Roeland
12:37 queued 01:56
created
lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * @return string
61 61
 	 */
62 62
 	public function getNonce(): string {
63
-		if($this->nonce === '') {
63
+		if ($this->nonce === '') {
64 64
 			if (empty($this->request->server['CSP_NONCE'])) {
65 65
 				$this->nonce = base64_encode($this->csrfTokenManager->getToken()->getEncryptedValue());
66 66
 			} else {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			'/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/(?:1[2-9]|[2-9][0-9])\.[0-9]+(?:\.[0-9]+)? Safari\/[0-9.A-Z]+$/',
86 86
 		];
87 87
 
88
-		if($this->request->isUserAgent($browserWhitelist)) {
88
+		if ($this->request->isUserAgent($browserWhitelist)) {
89 89
 			return true;
90 90
 		}
91 91
 
Please login to merge, or discard this patch.