fix protected functions in eventprime
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 50s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 1m7s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 1m9s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 1m5s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 1m7s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 1m7s
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 50s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 1m7s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 1m9s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 1m5s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 1m7s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 1m7s
This commit is contained in:
parent
4140d36a1d
commit
164140cd60
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ final class EventPrime extends Event {
|
||||||
/**
|
/**
|
||||||
* Get the end time from the event object.
|
* Get the end time from the event object.
|
||||||
*/
|
*/
|
||||||
protected function get_end_time(): ?string {
|
public function get_end_time(): ?string {
|
||||||
$timestamp = get_post_meta( $this->wp_object->ID, 'em_end_date', true );
|
$timestamp = get_post_meta( $this->wp_object->ID, 'em_end_date', true );
|
||||||
if ( $timestamp ) {
|
if ( $timestamp ) {
|
||||||
return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp );
|
return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp );
|
||||||
|
@ -35,7 +35,7 @@ final class EventPrime extends Event {
|
||||||
/**
|
/**
|
||||||
* Get the end time from the event object.
|
* Get the end time from the event object.
|
||||||
*/
|
*/
|
||||||
protected function get_start_time(): string {
|
public function get_start_time(): string {
|
||||||
$timestamp = get_post_meta( $this->wp_object->ID, 'em_start_date', true );
|
$timestamp = get_post_meta( $this->wp_object->ID, 'em_start_date', true );
|
||||||
if ( $timestamp ) {
|
if ( $timestamp ) {
|
||||||
return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp );
|
return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp );
|
||||||
|
@ -47,7 +47,7 @@ final class EventPrime extends Event {
|
||||||
/**
|
/**
|
||||||
* Get location from the event object.
|
* Get location from the event object.
|
||||||
*/
|
*/
|
||||||
protected function get_location(): ?Place {
|
public function get_location(): ?Place {
|
||||||
$venue_term_id = get_post_meta( $this->wp_object->ID, 'em_venue', true );
|
$venue_term_id = get_post_meta( $this->wp_object->ID, 'em_venue', true );
|
||||||
if ( ! $venue_term_id ) {
|
if ( ! $venue_term_id ) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue