@@ -114,7 +114,7 @@ discard block |
||
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 |
||
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 | ); |
@@ -33,7 +33,7 @@ |
||
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 | } |