From e848d6dbccacfa1748f907798abf7536a76e809d Mon Sep 17 00:00:00 2001 From: Lee Maguire Date: Mon, 15 Jul 2024 13:42:34 +0100 Subject: [PATCH] linting --- redirect.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redirect.php b/redirect.php index 467a5fc..71e58a3 100644 --- a/redirect.php +++ b/redirect.php @@ -4,7 +4,7 @@ * Handle request for uploaded content * @return void */ -function dxw_members_only_serve_uploads( $public = false ) +function dxw_members_only_serve_uploads($public = false) { $max_age = absint(get_option('dxw_members_only_max_age')); @@ -28,7 +28,7 @@ function dxw_members_only_serve_uploads( $public = false ) http_response_code(304); header('Last-Modified: ' . $ims_timestamp); } else { - if ( $public ) { + if ($public) { $max_age = absint(get_option('dxw_members_only_max_age_public')); } else { $max_age = absint(get_option('dxw_members_only_max_age_static')); @@ -221,7 +221,7 @@ function dxw_members_only_referrer_in_allow_list() } if ($hit) { - dxw_members_only_serve_uploads( true ); + dxw_members_only_serve_uploads(true); return; }