Completed
Pull Request — master (#33)
by Anthony
04:59
created
src/Generator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Carbon\Carbon;
6 6
 use Clarkeash\Doorman\Exceptions\DuplicateException;
7
-use Clarkeash\Doorman\Models\Invite;
8 7
 use Clarkeash\Doorman\Models\InviteInterface;
9 8
 
10 9
 class Generator
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * @return $this
55 55
      * @throws \Clarkeash\Doorman\Exceptions\DuplicateException
56 56
      */
57
-    public function for(string $email)
57
+    public function for (string $email)
58 58
     {
59 59
         $inviteModel = config('doorman.model');
60 60
 
Please login to merge, or discard this patch.
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 implements InviteInterface
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.