Test Failed
Push — master ( 5537b3...38813f )
by Zahir
08:30
created
src/Traits/Likable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public static function bootLikable()
25 25
     {
26
-        static::deleted(function ($model) {
26
+        static::deleted(function($model) {
27 27
             $model->likes()->delete();
28 28
         });
29 29
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $likes = $this->likes()->with('user')->get();
108 108
 
109
-        return $likes->mapWithKeys(function ($like) {
109
+        return $likes->mapWithKeys(function($like) {
110 110
             return [$like['user']->id => $like['user']];
111 111
         });
112 112
     }
Please login to merge, or discard this patch.
src/Traits/Likability.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $likes = $this->likes()->where('likable_type', $class)->with('likable')->get();
29 29
 
30
-        return $likes->mapWithKeys(function ($like) {
30
+        return $likes->mapWithKeys(function($like) {
31 31
             if (!isset($like['likable'])) {
32 32
                 return [];
33 33
             }
Please login to merge, or discard this patch.