Skip to content

Commit

Permalink
Linting class-cloudflare-stream-settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
David Armstrong committed Dec 10, 2024
1 parent f4dece1 commit c506dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inc/class-cloudflare-stream-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function media_domain_cb() {
. '<input type="radio" class="radio-option" name="cloudflare_stream_media_domain" id="cloudflare_stream_media_domain_' . esc_attr( $i ) . '" value="' . esc_html( self::STANDARD_MEDIA_DOMAINS[ $i ] ) . '" ' . checked( self::STANDARD_MEDIA_DOMAINS[ $i ], $media_domain, false ) . ' >'
. esc_html( self::STANDARD_MEDIA_DOMAINS[ $i ] ) . esc_html( $default_text ) . '</label>';

if ( $media_domain === self::STANDARD_MEDIA_DOMAINS[ $i ] ) {
if ( self::STANDARD_MEDIA_DOMAINS[ $i ] === $media_domain ) {
$existing_custom_domain = false;
}
}
Expand All @@ -229,7 +229,7 @@ public function media_domain_cb() {
$account_subdomain = self::get_account_subdomain();

// In the event custom domain is in use, but API details are misconfigured, this retains that setting as default.
if ( empty( $account_subdomain ) && ( $existing_custom_domain && !self::test_api_keys() ) ) {
if ( empty( $account_subdomain ) && ( $existing_custom_domain && ! self::test_api_keys() ) ) {
$account_subdomain = $media_domain;
}

Expand Down

0 comments on commit c506dc5

Please sign in to comment.