From 6e92f2a5b87993bad32cde1385538a78560ac094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sun, 15 Dec 2024 13:44:57 +0100 Subject: [PATCH] phpcs --- includes/activitypub/collection/class-event-sources.php | 2 +- includes/activitypub/transmogrifier/class-gatherpress.php | 2 +- includes/class-setup.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/activitypub/collection/class-event-sources.php b/includes/activitypub/collection/class-event-sources.php index 24a2a74..fec6daf 100644 --- a/includes/activitypub/collection/class-event-sources.php +++ b/includes/activitypub/collection/class-event-sources.php @@ -178,7 +178,7 @@ class Event_Sources { * * @param string $actor The Actor URL. * - * @return WP_Post|false|null Post data on success, false or null on failure. + * @return WP_Post|false|null Post data on success, false or null on failure. */ public static function remove_event_source( $actor ) { $post_id = Event_Source::get_wp_post_from_activitypub_actor_id( $actor ); diff --git a/includes/activitypub/transmogrifier/class-gatherpress.php b/includes/activitypub/transmogrifier/class-gatherpress.php index a0d0db4..c7af620 100644 --- a/includes/activitypub/transmogrifier/class-gatherpress.php +++ b/includes/activitypub/transmogrifier/class-gatherpress.php @@ -349,7 +349,7 @@ class GatherPress { $address = (array) $address; } - if ( ! is_array( $address ) || ! isset( $address['type'] ) ){ + if ( ! is_array( $address ) || ! isset( $address['type'] ) ) { return ''; } diff --git a/includes/class-setup.php b/includes/class-setup.php index 3a34351..84b69e9 100644 --- a/includes/class-setup.php +++ b/includes/class-setup.php @@ -30,7 +30,7 @@ require_once ABSPATH . 'wp-admin/includes/plugin.php'; /** * Class Setup. - * + * This class is responsible for initializing Event Bridge for ActivityPub. * * @since 1.0.0