From 993fc2b24f9b9914cbcc6d3189b8ec537bee327a Mon Sep 17 00:00:00 2001 From: ruru4143 Date: Sun, 29 Sep 2024 15:31:07 +0200 Subject: [PATCH] phpsniffer happy --- includes/activitypub/transformer/class-event.php | 4 +++- includes/activitypub/transformer/class-events-manager.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index 9c3f49c..bb35915 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -174,7 +174,9 @@ abstract class Event extends Post { } /** - * Compose a human readable formatted time from the parameter $time. + * Compose a human readable formatted time. + * + * @param ?string $time The time which needs to be formatted */ private static function format_time( $time ) { if ( is_null( $time ) ) { diff --git a/includes/activitypub/transformer/class-events-manager.php b/includes/activitypub/transformer/class-events-manager.php index 60f8884..a760d2e 100644 --- a/includes/activitypub/transformer/class-events-manager.php +++ b/includes/activitypub/transformer/class-events-manager.php @@ -47,7 +47,7 @@ final class Events_Manager extends Event_Transformer { */ public function __construct( $wp_object, $wp_taxonomy ) { parent::__construct( $wp_object, $wp_taxonomy ); - $this->em_event = new EM_Event( $this->wp_object->ID, 'post_id' ); + $this->em_event = new EM_Event( $this->wp_object->ID, 'post_id' ); } /**