]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/NotifyException.php
Code cleanup, bug squashing
[bookstack] / app / Exceptions / NotifyException.php
index 113100b6be1002d28e041421454c9521c4223359..4f810596099cf2132093677b571ce40bf44a5aa8 100644 (file)
@@ -1,6 +1,5 @@
 <?php namespace BookStack\Exceptions;
 
-
 class NotifyException extends \Exception
 {
 
@@ -9,13 +8,11 @@ class NotifyException extends \Exception
 
     /**
      * NotifyException constructor.
-     * @param string $message
-     * @param string    $redirectLocation
      */
-    public function __construct($message, $redirectLocation)
+    public function __construct(string $message, string $redirectLocation = "/")
     {
         $this->message = $message;
         $this->redirectLocation = $redirectLocation;
         parent::__construct();
     }
-}
\ No newline at end of file
+}