@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | parent::boot(); |
| 45 | 45 | |
| 46 | - static::creating(function ($model) { |
|
| 46 | + static::creating(function($model) { |
|
| 47 | 47 | $model->id = (string) Str::uuid(); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -165,12 +165,12 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | return static::where('id', $tokenId) |
| 167 | 167 | ->where('token', $tokenSecret) |
| 168 | - ->where(function ($query) { |
|
| 168 | + ->where(function($query) { |
|
| 169 | 169 | $query |
| 170 | 170 | ->whereNull('available_at') |
| 171 | 171 | ->orWhere('available_at', '>=', Carbon::now()); |
| 172 | 172 | }) |
| 173 | - ->where(function ($query) { |
|
| 173 | + ->where(function($query) { |
|
| 174 | 174 | $query |
| 175 | 175 | ->whereNull('max_visits') |
| 176 | 176 | ->orWhereRaw('max_visits > num_visits'); |
@@ -204,10 +204,10 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | public static function deleteMagicLinkExpired() |
| 206 | 206 | { |
| 207 | - static::where(function ($query) { |
|
| 207 | + static::where(function($query) { |
|
| 208 | 208 | $query |
| 209 | 209 | ->where('available_at', '<', Carbon::now()) |
| 210 | - ->orWhere(function ($query) { |
|
| 210 | + ->orWhere(function($query) { |
|
| 211 | 211 | $query |
| 212 | 212 | ->whereNotNull('max_visits') |
| 213 | 213 | ->whereRaw('max_visits <= num_visits'); |