Passed
Push — develop ( c40afd...72f08b )
by Mathew
02:53
created
src/Commands/GenerateInvitations.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.