]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/Access/EmailConfirmationService.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / app / Auth / Access / EmailConfirmationService.php
index a94c54d19b4258c7e6fd771c4fdf71c9aa11df1a..9c357d95f955f8dfde8227bd3c4525fd056d5d21 100644 (file)
@@ -1,4 +1,6 @@
-<?php namespace BookStack\Auth\Access;
+<?php
+
+namespace BookStack\Auth\Access;
 
 use BookStack\Auth\User;
 use BookStack\Exceptions\ConfirmationEmailException;
@@ -12,7 +14,7 @@ class EmailConfirmationService extends UserTokenService
     /**
      * Create new confirmation for a user,
      * Also removes any existing old ones.
-     * @param User $user
+     *
      * @throws ConfirmationEmailException
      */
     public function sendConfirmation(User $user)
@@ -29,12 +31,10 @@ class EmailConfirmationService extends UserTokenService
 
     /**
      * Check if confirmation is required in this instance.
-     * @return bool
      */
-    public function confirmationRequired() : bool
+    public function confirmationRequired(): bool
     {
         return setting('registration-confirmation')
             || setting('registration-restrict');
     }
-
 }