Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti committed Sep 21, 2023
1 parent 5c2df5c commit 50a049c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -356,9 +356,9 @@ public function field_secret() {
<label for="camptix-attendance-generate"><?php esc_html_e( 'Generate a new secret link (old links will expire)', 'wordcamporg' ); ?></label>
<p class="description">
<?php if ( empty( $this->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 ) ) ) );
} ?>
</p>
<?php
Expand Down

0 comments on commit 50a049c

Please sign in to comment.