Completed
Push — master ( 993e7d...d7663d )
by Marcel
34s
created
src/Middlewares/CrashFailsafe.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,11 +35,10 @@
 block discarded – undo
35 35
         try {
36 36
             return $handler->handle($request);
37 37
         } catch (Throwable $t) {
38
-            error_log($stackTrace = (string)$t);
38
+            error_log($stackTrace = (string) $t);
39 39
 
40 40
             return $this->hide ?
41
-                $this->staticResponse :
42
-                $this->responseFactory->createResponse(500)
41
+                $this->staticResponse : $this->responseFactory->createResponse(500)
43 42
                     ->withHeader('Content-Type', 'text/plain')
44 43
                     ->withBody($this->responseFactory->createStream($stackTrace));
45 44
         }
Please login to merge, or discard this patch.