1 | <?php |
||
14 | trait Followable |
||
15 | { |
||
16 | use HandlesRequestAndResponse, HasEntityIdName; |
||
17 | |||
18 | /** |
||
19 | * Follow user by user_id. |
||
20 | * |
||
21 | * @param $entityId |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | public function follow($entityId) |
||
29 | |||
30 | /** |
||
31 | * UnFollow user by user_id. |
||
32 | * |
||
33 | * @param $entityId |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function unFollow($entityId) |
||
41 | |||
42 | /** |
||
43 | * Make api call for follow/unFollow a entity (user/board). |
||
44 | * |
||
45 | * @param int $entityId |
||
46 | * @param string $resourceUrl |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | protected function followCall($entityId, $resourceUrl) |
||
59 | |||
60 | /** |
||
61 | * Executes api call for follow/unfollow user. |
||
62 | * |
||
63 | * @param int $entityId |
||
64 | * @param string $entityName |
||
|
|||
65 | * @param string $url |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function followMethodCall($entityId, $url) |
||
73 | |||
74 | public function createFollowRequestQuery($entityId) |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function getFollowUrl() |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | protected function getUnFollowUrl() |
||
108 | } |
||
109 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.