@@ -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 = Str::uuid(); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -164,12 +164,12 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | return static::where('id', $tokenId) |
| 166 | 166 | ->where('token', $tokenSecret) |
| 167 | - ->where(function ($query) { |
|
| 167 | + ->where(function($query) { |
|
| 168 | 168 | $query |
| 169 | 169 | ->whereNull('available_at') |
| 170 | 170 | ->orWhere('available_at', '>=', Carbon::now()); |
| 171 | 171 | }) |
| 172 | - ->where(function ($query) { |
|
| 172 | + ->where(function($query) { |
|
| 173 | 173 | $query |
| 174 | 174 | ->whereNull('max_visits') |
| 175 | 175 | ->orWhereRaw('max_visits > num_visits'); |
@@ -203,10 +203,10 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | public static function deleteMagicLinkExpired() |
| 205 | 205 | { |
| 206 | - static::where(function ($query) { |
|
| 206 | + static::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'); |