From 50a049c05a8aecf09336ce9d8829fcc7e1f22d9f Mon Sep 17 00:00:00 2001 From: Timi Wahalahti Date: Thu, 21 Sep 2023 15:16:53 +0300 Subject: [PATCH] phpcs --- .../plugins/camptix-attendance/addons/attendance.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php b/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php index f68401966..6869e93e9 100644 --- a/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php +++ b/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php @@ -3,9 +3,9 @@ * Allows event organizers to track which attendees showed up to the event. */ class CampTix_Attendance extends CampTix_Addon { - public $secret = ''; - public $questions = array(); - public $secret_expiry = '2 weeks'; + public $secret = ''; + public $questions = array(); + public $secret_expiry = '2 weeks'; /** * Runs during CampTix init. @@ -356,9 +356,9 @@ public function field_secret() {

secret_generated ) ) { - echo sprintf( esc_html__( "Link will expire automatically after two weeks from generating it.", 'wordcamporg' ), $this->secret_expiry ); + printf( esc_html__( 'Link will expire automatically after two weeks from generating it.', 'wordcamporg' ), $this->secret_expiry ); } else { - echo sprintf( esc_html__( "Link will expire automatically on %s.", 'wordcamporg' ), wp_date( 'Y-m-d H:i:s', strtotime( "+{$this->secret_expiry}", strtotime( $this->secret_generated ) ) ) ); + printf( esc_html__( 'Link will expire automatically on %s.', 'wordcamporg' ), wp_date( 'Y-m-d H:i:s', strtotime( "+{$this->secret_expiry}", strtotime( $this->secret_generated ) ) ) ); } ?>