@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | Schema::create( |
| 26 | 26 | config('follow.table_name'), |
| 27 | - function (Blueprint $table) { |
|
| 27 | + function(Blueprint $table) { |
|
| 28 | 28 | $table->bigIncrements('id'); |
| 29 | 29 | $table->unsignedBigInteger('follower_id'); |
| 30 | 30 | $table->unsignedBigInteger('following_id'); |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | public function removeManyFollowers(Collection $collection) |
| 112 | 112 | { |
| 113 | 113 | $collection->each( |
| 114 | - function (Model $user) { |
|
| 114 | + function(Model $user) { |
|
| 115 | 115 | $this->removeFollower($user); |
| 116 | 116 | } |
| 117 | 117 | ); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return mixed |
|
| 61 | + * @return null|boolean |
|
| 62 | 62 | */ |
| 63 | 63 | public function acceptFollow(Model $user) |
| 64 | 64 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @return mixed |
|
| 75 | + * @return null|boolean |
|
| 76 | 76 | */ |
| 77 | 77 | public function rejectFollow(Model $user) |
| 78 | 78 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | public function followMany(Collection $collection) |
| 82 | 82 | { |
| 83 | 83 | $collection->each( |
| 84 | - function (Model $user) { |
|
| 84 | + function(Model $user) { |
|
| 85 | 85 | $this->follow($user); |
| 86 | 86 | } |
| 87 | 87 | ); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | public function unFollowMany(Collection $collection) |
| 137 | 137 | { |
| 138 | 138 | $collection->each( |
| 139 | - function (Model $user) { |
|
| 139 | + function(Model $user) { |
|
| 140 | 140 | $this->unFollow($user); |
| 141 | 141 | } |
| 142 | 142 | ); |