Skip to content

Commit d423aeb

Browse files
authored
Fix unrelated PHPCS
1 parent 932e503 commit d423aeb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/wporg-5ftf/includes/pledge.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
add_action( 'pledge_footer', __NAMESPACE__ . '\render_manage_link_request' );
4040
add_action( 'wp_footer', __NAMESPACE__ . '\render_js_templates' );
4141

42-
// Misc
42+
// Misc.
4343
add_action( 'init', __NAMESPACE__ . '\schedule_cron_jobs' );
4444
add_action( '5ftf_send_update_reminders', __NAMESPACE__ . '\send_update_reminders' );
4545

@@ -250,7 +250,7 @@ function action_success_message() {
250250
* @return array The filtered list of post display states.
251251
*/
252252
function add_status_to_display( $post_states, $post ) {
253-
$showing_status = $_REQUEST['post_status'] ?? $showing_status = '';
253+
$showing_status = $_REQUEST['post_status'] ?? '';
254254

255255
$status = DEACTIVE_STATUS;
256256
if ( $showing_status !== $status && $status === $post->post_status ) {
@@ -454,7 +454,7 @@ function filter_query( $query ) {
454454
break;
455455

456456
default:
457-
$date = date( 'YmdH' );
457+
$date = gmdate( 'YmdH' );
458458
$query->set( 'orderby', "RAND($date)" );
459459
break;
460460
}
@@ -574,7 +574,7 @@ function schedule_cron_jobs() {
574574
/**
575575
* Periodically ask companies to review their pledge for accuracy.
576576
*/
577-
function send_update_reminders() : void {
577+
function send_update_reminders(): void {
578578
$resend_interval = 6 * MONTH_IN_SECONDS;
579579
$resend_threshold = time() - ( $resend_interval );
580580
$deactivation_date = time() + ( 2 * MONTH_IN_SECONDS );
@@ -610,7 +610,7 @@ function send_update_reminders() : void {
610610
'key' => '5ftf_inactive_deactivate_date',
611611
'compare' => 'NOT EXISTS',
612612
),
613-
)
613+
),
614614
) );
615615

616616
foreach ( $pledges as $pledge ) {

0 commit comments

Comments
 (0)