Passed
Pull Request — master (#113)
by
unknown
13:56
created
src/MagicLink.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::boot();
45 45
 
46
-        static::creating(function ($model) {
46
+        static::creating(function($model) {
47 47
             $model->id = (string) Str::uuid();
48 48
         });
49 49
     }
@@ -165,12 +165,12 @@  discard block
 block discarded – undo
165 165
 
166 166
         return static::where('id', $tokenId)
167 167
                     ->where('token', $tokenSecret)
168
-                    ->where(function ($query) {
168
+                    ->where(function($query) {
169 169
                         $query
170 170
                             ->whereNull('available_at')
171 171
                             ->orWhere('available_at', '>=', Carbon::now());
172 172
                     })
173
-                    ->where(function ($query) {
173
+                    ->where(function($query) {
174 174
                         $query
175 175
                             ->whereNull('max_visits')
176 176
                             ->orWhereRaw('max_visits > num_visits');
@@ -204,10 +204,10 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public static function deleteMagicLinkExpired()
206 206
     {
207
-        static::where(function ($query) {
207
+        static::where(function($query) {
208 208
             $query
209 209
                 ->where('available_at', '<', Carbon::now())
210
-                ->orWhere(function ($query) {
210
+                ->orWhere(function($query) {
211 211
                     $query
212 212
                         ->whereNotNull('max_visits')
213 213
                         ->whereRaw('max_visits <= num_visits');
Please login to merge, or discard this patch.