Passed
Push — master ( 6fbdf8...6e22c4 )
by Cesar
13:47
created
src/MagicLink.php 1 patch
Spacing   +7 added lines, -7 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 = Str::uuid();
48 48
         });
49 49
     }
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function baseUrl(?string $baseUrl): self
75 75
     {
76
-        $this->attributes['base_url'] = rtrim($baseUrl, '/') . '/';
76
+        $this->attributes['base_url'] = rtrim($baseUrl, '/').'/';
77 77
         return $this;
78 78
     }
79 79
 
80 80
     public function getUrlAttribute(): string
81 81
     {
82
-        $baseUrl = rtrim($this->attributes['base_url'] ?? '', '/') . '/'; // Use the stored base_url or an empty string
82
+        $baseUrl = rtrim($this->attributes['base_url'] ?? '', '/').'/'; // Use the stored base_url or an empty string
83 83
 
84 84
         return url(sprintf(
85 85
             '%s%s/%s%s%s',
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
 
175 175
         return static::where('id', $tokenId)
176 176
                     ->where('token', $tokenSecret)
177
-                    ->where(function ($query) {
177
+                    ->where(function($query) {
178 178
                         $query
179 179
                             ->whereNull('available_at')
180 180
                             ->orWhere('available_at', '>=', Carbon::now());
181 181
                     })
182
-                    ->where(function ($query) {
182
+                    ->where(function($query) {
183 183
                         $query
184 184
                             ->whereNull('max_visits')
185 185
                             ->orWhereRaw('max_visits > num_visits');
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
      */
214 214
     public static function deleteMagicLinkExpired()
215 215
     {
216
-        static::where(function ($query) {
216
+        static::where(function($query) {
217 217
             $query
218 218
                 ->where('available_at', '<', Carbon::now())
219
-                ->orWhere(function ($query) {
219
+                ->orWhere(function($query) {
220 220
                     $query
221 221
                         ->whereNotNull('max_visits')
222 222
                         ->whereRaw('max_visits <= num_visits');
Please login to merge, or discard this patch.