Completed
Push — master ( 99f755...a28c28 )
by Ashley
01:49
created
src/Manager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         try {
56 56
             return Invite::where('code', '=', Str::upper($code))->firstOrFail();
57 57
         } catch (ModelNotFoundException $e) {
58
-            throw new InvalidInviteCode(trans('doorman::messages.invalid', ['code' => $code]));
58
+            throw new InvalidInviteCode(trans('doorman::messages.invalid', [ 'code' => $code ]));
59 59
         }
60 60
     }
61 61
 
@@ -70,15 +70,15 @@  discard block
 block discarded – undo
70 70
     protected function validateInvite(Invite $invite, string $email = null)
71 71
     {
72 72
         if ($invite->max != 0 && $invite->uses >= $invite->max) {
73
-            throw new MaxUsesReached(trans('doorman::messages.maxed', ['code' => $invite->code]));
73
+            throw new MaxUsesReached(trans('doorman::messages.maxed', [ 'code' => $invite->code ]));
74 74
         }
75 75
 
76 76
         if (!is_null($invite->valid_until) && $invite->valid_until->isPast()) {
77
-            throw new ExpiredInviteCode(trans('doorman::messages.expired', ['code' => $invite->code]));
77
+            throw new ExpiredInviteCode(trans('doorman::messages.expired', [ 'code' => $invite->code ]));
78 78
         }
79 79
 
80 80
         if (!is_null($invite->for) && $invite->for != $email) {
81
-            throw new NotYourInviteCode(trans('doorman::messages.restricted', ['code' => $invite->code]));
81
+            throw new NotYourInviteCode(trans('doorman::messages.restricted', [ 'code' => $invite->code ]));
82 82
         }
83 83
     }
84 84
 }
Please login to merge, or discard this patch.