@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function handle() |
| 46 | 46 | { |
| 47 | - $email = $this->argument('email') ? : null; |
|
| 47 | + $email = $this->argument('email') ?: null; |
|
| 48 | 48 | $allow = $this->option('allow'); |
| 49 | 49 | $count = $this->option('count'); |
| 50 | 50 | $hours = (int) $this->option('hours'); |
@@ -52,17 +52,17 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | try |
| 54 | 54 | { |
| 55 | - $invite = LaravelInvites::for($email)->allow($allow); |
|
| 55 | + $invite = LaravelInvites::for ($email)->allow($allow); |
|
| 56 | 56 | |
| 57 | - if($days) |
|
| 57 | + if ($days) |
|
| 58 | 58 | $invite->setExpiry(now()->addDays($days)); |
| 59 | - else if($hours) |
|
| 59 | + else if ($hours) |
|
| 60 | 60 | $invite->setExpiry(now()->addHours($hours)); |
| 61 | 61 | |
| 62 | 62 | $invite->generate($count); |
| 63 | 63 | |
| 64 | 64 | $this->info($count." invitations generated."); |
| 65 | - } catch(\Exception $e) |
|
| 65 | + } catch (\Exception $e) |
|
| 66 | 66 | { |
| 67 | 67 | $this->error($e->getMessage()); |
| 68 | 68 | } |