]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/Handler.php
Update settings.php
[bookstack] / app / Exceptions / Handler.php
index a979072e23822f5fcc54b633696ef4115a86c5bf..4f6e690bc3b10bf9f42b28b79aa803a2a3b2fa4a 100644 (file)
@@ -95,9 +95,12 @@ class Handler extends ExceptionHandler
      * @param $type
      * @return bool
      */
-    protected function isExceptionType(Exception $e, $type) {
+    protected function isExceptionType(Exception $e, $type)
+    {
         do {
-            if (is_a($e, $type)) return true;
+            if (is_a($e, $type)) {
+                return true;
+            }
         } while ($e = $e->getPrevious());
         return false;
     }
@@ -107,7 +110,8 @@ class Handler extends ExceptionHandler
      * @param Exception $e
      * @return string
      */
-    protected function getOriginalMessage(Exception $e) {
+    protected function getOriginalMessage(Exception $e)
+    {
         do {
             $message = $e->getMessage();
         } while ($e = $e->getPrevious());