From 216665e0029078a52c04bbec90444e90d895d68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 12 Dec 2024 21:37:29 +0100 Subject: [PATCH] phpcs --- includes/class-setup.php | 2 +- includes/integrations/class-eventprime.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-setup.php b/includes/class-setup.php index b2ccb24..f75721f 100644 --- a/includes/class-setup.php +++ b/includes/class-setup.php @@ -188,7 +188,7 @@ class Setup { * @return void */ public function setup_hooks(): void { - $this->detect_active_event_plugins(); + $this->detect_active_event_plugins(); register_activation_hook( EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_FILE, array( $this, 'activate' ) ); diff --git a/includes/integrations/class-eventprime.php b/includes/integrations/class-eventprime.php index 44d0530..a50f7ff 100644 --- a/includes/integrations/class-eventprime.php +++ b/includes/integrations/class-eventprime.php @@ -195,7 +195,7 @@ final class EventPrime extends Event_Plugin { * @see https://www.w3.org/wiki/SocialCG/ActivityPub/Primer/Authentication_Authorization#Authorized_fetch * @see https://swicg.github.io/activitypub-http-signature/#authorized-fetch */ - if ( $activitypub_template && defined( 'ACTIVITYPUB_AUTHORIZED_FETCH') && constant( 'ACTIVITYPUB_AUTHORIZED_FETCH' ) ) { + if ( $activitypub_template && defined( 'ACTIVITYPUB_AUTHORIZED_FETCH' ) && constant( 'ACTIVITYPUB_AUTHORIZED_FETCH' ) ) { $verification = Signature::verify_http_signature( $_SERVER ); if ( \is_wp_error( $verification ) ) { header( 'HTTP/1.1 401 Unauthorized' );