Skip to content

Commit f3711b8

Browse files
authored
Apply fixes from StyleCI (#6)
1 parent b032ec5 commit f3711b8

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

src/LaravelFollow.php

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ trait LaravelFollow
99
{
1010
/**
1111
* Follow the given user.
12-
* @param mixed $user
12+
*
13+
* @param mixed $user
1314
* @return void
1415
*/
1516
public function follow(mixed $user): void
@@ -24,7 +25,8 @@ public function follow(mixed $user): void
2425

2526
/**
2627
* Unfollow the given user.
27-
* @param mixed $user
28+
*
29+
* @param mixed $user
2830
* @return void
2931
*/
3032
public function unfollow(mixed $user): void
@@ -38,7 +40,8 @@ public function unfollow(mixed $user): void
3840

3941
/**
4042
* Check if a user is following the given user.
41-
* @param mixed $user
43+
*
44+
* @param mixed $user
4245
* @return bool
4346
*/
4447
public function isFollowing(mixed $user): bool
@@ -67,7 +70,8 @@ public function isFollowing(mixed $user): bool
6770

6871
/**
6972
* Check if a user is followed by the given user.
70-
* @param mixed $user
73+
*
74+
* @param mixed $user
7175
* @return bool
7276
*/
7377
public function isFollowedBy(mixed $user): bool
@@ -96,6 +100,7 @@ public function isFollowedBy(mixed $user): bool
96100

97101
/**
98102
* Returns the users a user is following.
103+
*
99104
* @return \Illuminate\Database\Eloquent\Collection
100105
*/
101106
public function getFollowing(): \Illuminate\Database\Eloquent\Collection
@@ -107,6 +112,7 @@ public function getFollowing(): \Illuminate\Database\Eloquent\Collection
107112

108113
/**
109114
* Returns the users who are following a user.
115+
*
110116
* @return \Illuminate\Database\Eloquent\Collection
111117
*/
112118
public function getFollowers(): \Illuminate\Database\Eloquent\Collection
@@ -118,6 +124,7 @@ public function getFollowers(): \Illuminate\Database\Eloquent\Collection
118124

119125
/**
120126
* Returns IDs of the users a user is following.
127+
*
121128
* @return array
122129
*/
123130
public function getFollowingIds(): array
@@ -130,6 +137,7 @@ public function getFollowingIds(): array
130137

131138
/**
132139
* Returns IDs of the users who are following a user.
140+
*
133141
* @return array
134142
*/
135143
public function getFollowersIds(): array
@@ -143,6 +151,7 @@ public function getFollowersIds(): array
143151
/**
144152
* Returns IDs of the users a user is following.
145153
* Returns IDs of the users who are following a user.
154+
*
146155
* @return array
147156
*/
148157
public function getFollowingAndFollowersIds(): array
@@ -155,7 +164,8 @@ public function getFollowingAndFollowersIds(): array
155164

156165
/**
157166
* Caches IDs of the users a user is following.
158-
* @param mixed $duration
167+
*
168+
* @param mixed $duration
159169
* @return void
160170
*/
161171
public function cacheFollowing(mixed $duration = null): void
@@ -171,7 +181,8 @@ public function cacheFollowing(mixed $duration = null): void
171181

172182
/**
173183
* Caches IDs of the users who are following a user.
174-
* @param mixed|null $duration
184+
*
185+
* @param mixed|null $duration
175186
* @return void
176187
*/
177188
public function cacheFollowers(mixed $duration = null): void
@@ -187,7 +198,9 @@ public function cacheFollowers(mixed $duration = null): void
187198

188199
/**
189200
* Returns the cached IDs of the users a user is following.
201+
*
190202
* @return array
203+
*
191204
* @throws
192205
*/
193206
public function getFollowingCache(): array
@@ -197,7 +210,9 @@ public function getFollowingCache(): array
197210

198211
/**
199212
* Returns the cached IDs of the users who are followers a user.
213+
*
200214
* @return array
215+
*
201216
* @throws
202217
*/
203218
public function getFollowersCache(): array
@@ -207,6 +222,7 @@ public function getFollowersCache(): array
207222

208223
/**
209224
* Clears the Following cache.
225+
*
210226
* @return void
211227
*/
212228
public function clearFollowingCache(): void
@@ -216,6 +232,7 @@ public function clearFollowingCache(): void
216232

217233
/**
218234
* Clears the Followers cache.
235+
*
219236
* @return void
220237
*/
221238
public function clearFollowersCache(): void

0 commit comments

Comments
 (0)