@@ -83,9 +83,9 @@ public static function remove_follower( $user_id, $actor ) {
8383 /**
8484 * Fires before a Follower is removed.
8585 *
86- * @param \Activitypub\Model\ Follower $follower The Follower object.
87- * @param int $user_id The ID of the WordPress User.
88- * @param string $actor The Actor URL.
86+ * @param Follower $follower The Follower object.
87+ * @param int $user_id The ID of the WordPress User.
88+ * @param string $actor The Actor URL.
8989 */
9090 do_action ( 'activitypub_followers_pre_remove_follower ' , $ follower , $ user_id , $ actor );
9191
@@ -98,7 +98,7 @@ public static function remove_follower( $user_id, $actor ) {
9898 * @param int $user_id The ID of the WordPress User.
9999 * @param string $actor The Actor URL.
100100 *
101- * @return \Activitypub\Activity\Base_Object|WP_Error |null The Follower object or null
101+ * @return Follower|false |null The Follower object or null
102102 */
103103 public static function get_follower ( $ user_id , $ actor ) {
104104 global $ wpdb ;
@@ -128,7 +128,7 @@ public static function get_follower( $user_id, $actor ) {
128128 *
129129 * @param string $actor The Actor URL.
130130 *
131- * @return \Activitypub\Activity\Base_Object|WP_Error |null
131+ * @return Follower|false |null The Follower object or false on failure.
132132 */
133133 public static function get_follower_by_actor ( $ actor ) {
134134 global $ wpdb ;
@@ -156,7 +156,7 @@ public static function get_follower_by_actor( $actor ) {
156156 * @param int $number Maximum number of results to return.
157157 * @param int $page Page number.
158158 * @param array $args The WP_Query arguments.
159- * @return array List of `Follower` objects.
159+ * @return Follower[] List of `Follower` objects.
160160 */
161161 public static function get_followers ( $ user_id , $ number = -1 , $ page = null , $ args = array () ) {
162162 $ data = self ::get_followers_with_count ( $ user_id , $ number , $ page , $ args );
@@ -174,8 +174,8 @@ public static function get_followers( $user_id, $number = -1, $page = null, $arg
174174 * @return array {
175175 * Data about the followers.
176176 *
177- * @type array $followers List of `Follower` objects.
178- * @type int $total Total number of followers.
177+ * @type Follower[] $followers List of `Follower` objects.
178+ * @type int $total Total number of followers.
179179 * }
180180 */
181181 public static function get_followers_with_count ( $ user_id , $ number = -1 , $ page = null , $ args = array () ) {
@@ -206,7 +206,7 @@ public static function get_followers_with_count( $user_id, $number = -1, $page =
206206 /**
207207 * Get all Followers.
208208 *
209- * @return array The Term list of Followers.
209+ * @return Follower[] The Term list of Followers.
210210 */
211211 public static function get_all_followers () {
212212 $ args = array (
@@ -276,7 +276,7 @@ public static function get_inboxes( $user_id ) {
276276 return $ inboxes ;
277277 }
278278
279- // Get all Followers of a ID of the WordPress User.
279+ // Get all Followers of an ID of the WordPress User.
280280 $ posts = new WP_Query (
281281 array (
282282 'nopaging ' => true ,
@@ -368,7 +368,7 @@ public static function maybe_add_inboxes_of_blog_user( $json, $actor_id ) {
368368 }
369369
370370 $ activity = json_decode ( $ json , true );
371- // Only if this is an Update or Delete. Create handles its own Announce in dual user mode.
371+ // Only if this is an Update or Delete. Create handles its own " Announce" in dual user mode.
372372 if ( ! in_array ( $ activity ['type ' ] ?? null , array ( 'Update ' , 'Delete ' ), true ) ) {
373373 return false ;
374374 }
@@ -382,7 +382,7 @@ public static function maybe_add_inboxes_of_blog_user( $json, $actor_id ) {
382382 * @param int $number Optional. Limits the result. Default 50.
383383 * @param int $older_than Optional. The time in seconds. Default 86400 (1 day).
384384 *
385- * @return array The Term list of Followers.
385+ * @return Follower[] The Term list of Followers.
386386 */
387387 public static function get_outdated_followers ( $ number = 50 , $ older_than = 86400 ) {
388388 $ args = array (
@@ -410,7 +410,7 @@ public static function get_outdated_followers( $number = 50, $older_than = 86400
410410 *
411411 * @param int $number Optional. The number of Followers to return. Default 20.
412412 *
413- * @return array The Term list of Followers.
413+ * @return Follower[] The Term list of Followers.
414414 */
415415 public static function get_faulty_followers ( $ number = 20 ) {
416416 $ args = array (
0 commit comments