Passed
Push — master ( b2959d...2124d1 )
by Morris
12:31 queued 12s
created
lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,9 +211,9 @@
 block discarded – undo
211 211
 	public function afterException($controller, $methodName, \Exception $exception): Response {
212 212
 		if ($exception instanceof SecurityException) {
213 213
 			if ($exception instanceof StrictCookieMissingException) {
214
-				return new RedirectResponse(\OC::$WEBROOT . '/');
214
+				return new RedirectResponse(\OC::$WEBROOT.'/');
215 215
 			}
216
-			if (stripos($this->request->getHeader('Accept'),'html') === false) {
216
+			if (stripos($this->request->getHeader('Accept'), 'html') === false) {
217 217
 				$response = new JSONResponse(
218 218
 					['message' => $exception->getMessage()],
219 219
 					$exception->getCode()
Please login to merge, or discard this patch.