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' ); } /**