File tree 5 files changed +0
-29
lines changed
5 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ class Event
13
13
14
14
/**
15
15
* Event constructor.
16
- *
17
- * @param \Illuminate\Database\Eloquent\Model $like
18
16
*/
19
17
public function __construct (Model $ like )
20
18
{
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ class Like extends Model
17
17
'deleted ' => Unliked::class,
18
18
];
19
19
20
- /**
21
- * @param array $attributes
22
- */
23
20
public function __construct (array $ attributes = [])
24
21
{
25
22
$ this ->table = \config ('like.likes_table ' );
@@ -63,8 +60,6 @@ public function liker()
63
60
}
64
61
65
62
/**
66
- * @param \Illuminate\Database\Eloquent\Builder $query
67
- * @param string $type
68
63
* @return \Illuminate\Database\Eloquent\Builder
69
64
*/
70
65
public function scopeWithType (Builder $ query , string $ type )
Original file line number Diff line number Diff line change 6
6
7
7
trait Likeable
8
8
{
9
- /**
10
- * @param \Illuminate\Database\Eloquent\Model $user
11
- * @return bool
12
- */
13
9
public function isLikedBy (Model $ user ): bool
14
10
{
15
11
if (\is_a ($ user , config ('auth.providers.users.model ' ))) {
@@ -25,8 +21,6 @@ public function isLikedBy(Model $user): bool
25
21
26
22
/**
27
23
* Return followers.
28
- *
29
- * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
30
24
*/
31
25
public function likers (): \Illuminate \Database \Eloquent \Relations \BelongsToMany
32
26
{
Original file line number Diff line number Diff line change 13
13
14
14
trait Liker
15
15
{
16
- /**
17
- * @param \Illuminate\Database\Eloquent\Model $object
18
- * @return Like
19
- */
20
16
public function like (Model $ object ): Like
21
17
{
22
18
$ attributes = [
@@ -43,9 +39,6 @@ function () use ($like, $attributes) {
43
39
}
44
40
45
41
/**
46
- * @param \Illuminate\Database\Eloquent\Model $object
47
- * @return bool
48
- *
49
42
* @throws \Exception
50
43
*/
51
44
public function unlike (Model $ object ): bool
@@ -69,7 +62,6 @@ public function unlike(Model $object): bool
69
62
}
70
63
71
64
/**
72
- * @param \Illuminate\Database\Eloquent\Model $object
73
65
* @return Like|null
74
66
*
75
67
* @throws \Exception
@@ -79,10 +71,6 @@ public function toggleLike(Model $object)
79
71
return $ this ->hasLiked ($ object ) ? $ this ->unlike ($ object ) : $ this ->like ($ object );
80
72
}
81
73
82
- /**
83
- * @param \Illuminate\Database\Eloquent\Model $object
84
- * @return bool
85
- */
86
74
public function hasLiked (Model $ object ): bool
87
75
{
88
76
return ($ this ->relationLoaded ('likes ' ) ? $ this ->likes : $ this ->likes ())
Original file line number Diff line number Diff line change @@ -233,10 +233,6 @@ public function test_liker_can_attach_like_status_to_votable_collection()
233
233
$ this ->assertFalse ($ posts [2 ]['post ' ]['has_liked ' ]);
234
234
}
235
235
236
- /**
237
- * @param \Closure $callback
238
- * @return \Illuminate\Support\Collection
239
- */
240
236
protected function getQueryLog (\Closure $ callback ): \Illuminate \Support \Collection
241
237
{
242
238
$ sqls = \collect ([]);
You can’t perform that action at this time.
0 commit comments