@@ -55,7 +55,7 @@ discard block |
||
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 |
||
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 | } |