Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
leedxw committed Jul 15, 2024
1 parent 38cfcab commit e848d6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand All @@ -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'));
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit e848d6d

Please sign in to comment.