Skip to content

Commit

Permalink
PHPCS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Dec 29, 2023
1 parent 79087e2 commit dee1306
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion includes/core/classes/class-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ public function get_display_datetime(): string {
}

if ( ! empty( $start ) && ! empty( $end ) ) {
return sprintf( __( '%s to %s', 'gatherpress' ), $start, $end );
/* translators: %1$s: start datetime, %2$s: end datetime. */
return sprintf( __( '%1$s to %2$s', 'gatherpress' ), $start, $end );
}

return __( '', 'gatherpress' );
Expand Down
1 change: 0 additions & 1 deletion includes/core/classes/class-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected function instantiate_classes(): void {
Rest_Api::get_instance();
Settings::get_instance();
Venue::get_instance();

}

/**
Expand Down
1 change: 1 addition & 0 deletions includes/core/classes/commands/class-cli-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function rsvp( array $args = array(), array $assoc_args = array() ): void

WP_CLI::success(
sprintf(
/* translators: %1$d: event ID, %2$s: attendance status, %3$d: user ID. */
__( 'The RSVP status for Event ID "%1$d" has been successfully set to "%2$s" for User ID "%3$d".', 'gatherpress' ),
$event_id,
$response,
Expand Down
2 changes: 1 addition & 1 deletion includes/core/requirements-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static function () {
<p>
<?php
echo sprintf(
/* translators: %1$s: minimum PHP version, %2$s current PHP version. */
/* translators: %1$s: minimum PHP version, %2$s: current PHP version. */
esc_html__(
'GatherPress requires PHP %1$s or higher. Your current PHP version is %2$s. Please upgrade.',
'gatherpress'
Expand Down

0 comments on commit dee1306

Please sign in to comment.