transformer_refactoring #44

Merged
linos merged 42 commits from transformer_refactoring into main 2024-10-02 19:15:29 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 993fc2b24f - Show all commits

View file

@ -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 ) ) {

View file

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