@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | parent::boot(); |
24 | 24 | |
25 | - static::creating(function ($model) { |
|
25 | + static::creating(function($model) { |
|
26 | 26 | $model->id = Str::uuid(); |
27 | 27 | }); |
28 | 28 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | public function protectedWithAcessCode(): bool |
120 | 120 | { |
121 | - return !is_null($this->access_code ?? null); |
|
121 | + return ! is_null($this->access_code ?? null); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
@@ -163,12 +163,12 @@ discard block |
||
163 | 163 | |
164 | 164 | return self::where('id', $tokenId) |
165 | 165 | ->where('token', $tokenSecret) |
166 | - ->where(function ($query) { |
|
166 | + ->where(function($query) { |
|
167 | 167 | $query |
168 | 168 | ->whereNull('available_at') |
169 | 169 | ->orWhere('available_at', '>=', Carbon::now()); |
170 | 170 | }) |
171 | - ->where(function ($query) { |
|
171 | + ->where(function($query) { |
|
172 | 172 | $query |
173 | 173 | ->whereNull('max_visits') |
174 | 174 | ->orWhereRaw('max_visits > num_visits'); |
@@ -203,10 +203,10 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public static function deleteMagicLinkExpired() |
205 | 205 | { |
206 | - self::where(function ($query) { |
|
206 | + self::where(function($query) { |
|
207 | 207 | $query |
208 | 208 | ->where('available_at', '<', Carbon::now()) |
209 | - ->orWhere(function ($query) { |
|
209 | + ->orWhere(function($query) { |
|
210 | 210 | $query |
211 | 211 | ->whereNotNull('max_visits') |
212 | 212 | ->whereRaw('max_visits <= num_visits'); |