phpsniffer happy
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 33s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m1s

This commit is contained in:
ruru4143 2024-09-29 15:31:07 +02:00
parent 24844f57c1
commit 993fc2b24f
2 changed files with 4 additions and 2 deletions

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