Passed
Push — main ( 15268c...046ee7 )
by Usama
07:02 queued 03:18
created
src/Scopes/HasLikes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $ip = request()->ip();
25 25
         $userAgent = request()->userAgent();
26 26
         if (auth()->user()) {
27
-            return User::with('likes')->whereHas('likes', function ($q) {
27
+            return User::with('likes')->whereHas('likes', function($q) {
28 28
                 $q->where('comment_id', $this->id);
29 29
             })->count();
30 30
         }
Please login to merge, or discard this patch.