Passed
Push — master ( 0441ee...a282a3 )
by Zahir
08:01
created
src/Traits/Visitable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $user = $this->visits()->with('user')->get();
116 116
 
117
-        return $user->mapWithKeys(function ($item) {
117
+        return $user->mapWithKeys(function($item) {
118 118
             return [$item['user']->id => $item['user']];
119 119
         });
120 120
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public static function bootVisitable()
146 146
     {
147 147
         static::deleted(
148
-            function ($model) {
148
+            function($model) {
149 149
                 $model->visits()->delete();
150 150
             }
151 151
         );
Please login to merge, or discard this patch.
src/Traits/Visitability.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function visitors($class)
35 35
     {
36
-        return $this->visits()->where('visitable_type', $class)->with('visitable')->get()->mapWithKeys(function ($item) {
36
+        return $this->visits()->where('visitable_type', $class)->with('visitable')->get()->mapWithKeys(function($item) {
37 37
             if (isset($item['visitable'])) {
38 38
                 return [$item['visitable']->id => $item['visitable']];
39 39
             }
Please login to merge, or discard this patch.