Completed
Push — master ( 978786...d3f292 )
by Ashley
01:41
created
src/Models/Invite.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 class Invite extends Model
9 9
 {
10
-    protected $dates = ['valid_until'];
10
+    protected $dates = [ 'valid_until' ];
11 11
 
12
-    public function __construct(array $attributes = [])
12
+    public function __construct(array $attributes = [ ])
13 13
     {
14 14
         $this->table = config('doorman.invite_table_name');
15 15
         parent::__construct($attributes);
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
     public function setForAttribute($for)
19 19
     {
20 20
         if (is_string($for)) {
21
-            $this->attributes['for'] = strtolower($for);
21
+            $this->attributes[ 'for' ] = strtolower($for);
22 22
         } else {
23
-            $this->attributes['for'] = null;
23
+            $this->attributes[ 'for' ] = null;
24 24
         }
25 25
 
26 26
     }
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
     public function scopeUseless($query)
121 121
     {
122 122
         return $query
123
-            ->where(function ($q) {
123
+            ->where(function($q) {
124 124
                 $this->scopeExpired($q);
125 125
             })
126
-            ->orWhere(function ($q) {
126
+            ->orWhere(function($q) {
127 127
                 $this->scopeFull($q);
128 128
             });
129 129
     }
Please login to merge, or discard this patch.
src/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @return $this
54 54
      * @throws \Clarkeash\Doorman\Exceptions\DuplicateException
55 55
      */
56
-    public function for(string $email)
56
+    public function for (string $email)
57 57
     {
58 58
         if (Invite::where('for', strtolower($email))->first()) {
59 59
             throw new DuplicateException('You cannot create more than 1 invite code for an email');
Please login to merge, or discard this patch.