Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add transcoded url meta #298

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

KMchaudhary
Copy link

No description provided.

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code analysis identified issues

action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 194 errors

⚠️ 6 warnings


Powered by rtCamp's GitHub Actions Library

Posting will continue in further review(s)

@@ -8,36 +9,46 @@
* @subpackage Transcoder/Admin/Partials
*/

$current_page = transcoder_filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$current_page = transcoder_filter_input(INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -8,36 +9,46 @@
* @subpackage Transcoder/Admin/Partials
*/

$current_page = transcoder_filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$current_page = transcoder_filter_input(INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$current_page = transcoder_filter_input(INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS);

// Check if the user has access to the transcoding service.
$usage_details = get_site_option('rt-transcoding-usage');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

$current_page = transcoder_filter_input(INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS);

// Check if the user has access to the transcoding service.
$usage_details = get_site_option('rt-transcoding-usage');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).


// Check if the user has access to the transcoding service.
$usage_details = get_site_option('rt-transcoding-usage');
$usage = $usage_details[$this->api_key] ?? null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Array keys must be surrounded by spaces unless they contain a string or an integer (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys).

// Check if the user has access to the transcoding service.
$usage_details = get_site_option('rt-transcoding-usage');
$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

// Check if the user has access to the transcoding service.
$usage_details = get_site_option('rt-transcoding-usage');
$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$usage_details = get_site_option('rt-transcoding-usage');
$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
is_object($usage) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

$usage_details = get_site_option('rt-transcoding-usage');
$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
is_object($usage) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

$usage = $usage_details[$this->api_key] ?? null;
$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space after open parenthesis; 0 found (Generic.WhiteSpace.ArbitraryParenthesesSpacing.SpaceAfterOpen).

$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space before "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore).

$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$has_access = ! empty($this->api_key) &&
is_object($usage) &&
! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space before close parenthesis; 0 found (Generic.WhiteSpace.ArbitraryParenthesesSpacing.SpaceBeforeClose).

! empty($usage->status) &&
(! isset($usage->remaining) || $usage->remaining > 0);
// Temporarily allow access to all users.
// $has_access = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

?>
<div class="wrap">
<h1 class="rtm-option-title">
<?php esc_html_e( 'Transcoder Service Settings', 'transcoder' ); ?>
<?php esc_html_e('Transcoder Service Settings', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

?>
<div class="wrap">
<h1 class="rtm-option-title">
<?php esc_html_e( 'Transcoder Service Settings', 'transcoder' ); ?>
<?php esc_html_e('Transcoder Service Settings', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<span class="alignright by">
<a class="rt-link"
href="https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=transcoder"
target="_blank"
title="rtCamp : <?php esc_attr_e( 'Empowering The Web With WordPress', 'transcoder' ); ?>">
<img src="<?php echo esc_url( RT_TRANSCODER_URL ); ?>admin/images/rtcamp-logo.png" alt="rtCamp"/>
title="rtCamp : <?php esc_attr_e('Empowering The Web With WordPress', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<span class="alignright by">
<a class="rt-link"
href="https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=transcoder"
target="_blank"
title="rtCamp : <?php esc_attr_e( 'Empowering The Web With WordPress', 'transcoder' ); ?>">
<img src="<?php echo esc_url( RT_TRANSCODER_URL ); ?>admin/images/rtcamp-logo.png" alt="rtCamp"/>
title="rtCamp : <?php esc_attr_e('Empowering The Web With WordPress', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

title="rtCamp : <?php esc_attr_e( 'Empowering The Web With WordPress', 'transcoder' ); ?>">
<img src="<?php echo esc_url( RT_TRANSCODER_URL ); ?>admin/images/rtcamp-logo.png" alt="rtCamp"/>
title="rtCamp : <?php esc_attr_e('Empowering The Web With WordPress', 'transcoder'); ?>">
<img src="<?php echo esc_url(RT_TRANSCODER_URL); ?>admin/images/rtcamp-logo.png" alt="rtCamp" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

title="rtCamp : <?php esc_attr_e( 'Empowering The Web With WordPress', 'transcoder' ); ?>">
<img src="<?php echo esc_url( RT_TRANSCODER_URL ); ?>admin/images/rtcamp-logo.png" alt="rtCamp"/>
title="rtCamp : <?php esc_attr_e('Empowering The Web With WordPress', 'transcoder'); ?>">
<img src="<?php echo esc_url(RT_TRANSCODER_URL); ?>admin/images/rtcamp-logo.png" alt="rtCamp" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</a>
</span>
</h1>
<div id="rtt-settings_updated" class="updated settings-error notice is-dismissible hide">
<p></p>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice', 'transcoder' ); ?>.</span>
<span class="screen-reader-text"><?php esc_html_e('Dismiss this notice', 'transcoder'); ?>.</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</a>
</span>
</h1>
<div id="rtt-settings_updated" class="updated settings-error notice is-dismissible hide">
<p></p>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice', 'transcoder' ); ?>.</span>
<span class="screen-reader-text"><?php esc_html_e('Dismiss this notice', 'transcoder'); ?>.</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</button>
</div>
<div class="transcoder-settings-boxes-wrapper">
<div id="transcoder-settings-boxes" class="transcoder-settings-boxes-container transcoder-setting-container">
<p>
<form method="get" action="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>">
<form method="get" action="<?php echo esc_url(admin_url('admin.php')); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</button>
</div>
<div class="transcoder-settings-boxes-wrapper">
<div id="transcoder-settings-boxes" class="transcoder-settings-boxes-container transcoder-setting-container">
<p>
<form method="get" action="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>">
<form method="get" action="<?php echo esc_url(admin_url('admin.php')); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<label for="new-api-key">
<?php esc_html_e( 'Enter License Key', 'transcoder' ); ?>
<?php esc_html_e('Enter License Key', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<label for="new-api-key">
<?php esc_html_e( 'Enter License Key', 'transcoder' ); ?>
<?php esc_html_e('Enter License Key', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<input type="hidden" name="page" value="<?php echo esc_attr( $current_page ); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr( $this->stored_api_key ); ?>" size="60"/>
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<input type="hidden" name="page" value="<?php echo esc_attr( $current_page ); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr( $this->stored_api_key ); ?>" size="60"/>
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr( $this->stored_api_key ); ?>" size="60"/>
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr($this->stored_api_key); ?>" size="60" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr( $this->stored_api_key ); ?>" size="60"/>
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr($this->stored_api_key); ?>" size="60" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr($this->stored_api_key); ?>" size="60" />
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e('Save Key', 'transcoder'); ?></button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e( 'Save Key', 'transcoder' ); ?></button>
<input type="hidden" name="page" value="<?php echo esc_attr($current_page); ?>">
<input id="new-api-key" type="text" name="apikey" value="<?php echo esc_attr($this->stored_api_key); ?>" size="60" />
<button type="submit" id="api-key-submit" name="update" value="true" class="button-primary"><?php esc_html_e('Save Key', 'transcoder'); ?></button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@@ -47,144 +58,144 @@
$enable_btn_style = 'display:none;';
$disable_btn_style = 'display:none;';

if ( $this->api_key ) {
if ($this->api_key) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: No space after opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis).

@@ -47,144 +58,144 @@
$enable_btn_style = 'display:none;';
$disable_btn_style = 'display:none;';

if ( $this->api_key ) {
if ($this->api_key) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: No space before closing parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis).

$enable_btn_style = 'display:inline;';
} elseif ( $this->stored_api_key ) {
} elseif ($this->stored_api_key) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: No space after opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis).

$enable_btn_style = 'display:inline;';
} elseif ( $this->stored_api_key ) {
} elseif ($this->stored_api_key) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: No space before closing parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis).

$disable_btn_style = 'display:inline;';
}
?>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr( $enable_btn_style ); ?>"/>
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr( $disable_btn_style ); ?>"/>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr($enable_btn_style); ?>" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

$disable_btn_style = 'display:inline;';
}
?>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr( $enable_btn_style ); ?>"/>
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr( $disable_btn_style ); ?>"/>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr($enable_btn_style); ?>" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr( $enable_btn_style ); ?>"/>
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr( $disable_btn_style ); ?>"/>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr($enable_btn_style); ?>" />
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr($disable_btn_style); ?>" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr( $enable_btn_style ); ?>"/>
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr( $disable_btn_style ); ?>"/>
<input type="submit" id="disable-transcoding" name="disable-transcoding" value="Disable Transcoding" class="button-secondary" style="<?php echo esc_attr($enable_btn_style); ?>" />
<input type="submit" id="enable-transcoding" name="enable-transcoding" value="Enable Transcoding" class="button-secondary" style="<?php echo esc_attr($disable_btn_style); ?>" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Feature\Plan', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Feature\Plan', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Feature\Plan', 'transcoder'); ?>
</th>
<th>
<?php esc_html_e('Free', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('Feature\Plan', 'transcoder'); ?>
</th>
<th>
<?php esc_html_e('Free', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Free', 'transcoder'); ?>
</th>
<th>
<?php esc_html_e('Silver', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('Free', 'transcoder'); ?>
</th>
<th>
<?php esc_html_e('Silver', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php
<tr>
<th>
<?php esc_html_e('File Size Limit', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<?php
<tr>
<th>
<?php esc_html_e('File Size Limit', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('File Size Limit', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('100MB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('File Size Limit', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('100MB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('100MB', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('16GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('100MB', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('16GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Bandwidth (monthly)', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Bandwidth (monthly)', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Bandwidth (monthly)', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('5GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('Bandwidth (monthly)', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('5GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('5GB', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('100GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<?php esc_html_e('5GB', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('100GB', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Overage Bandwidth', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Overage Bandwidth', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Overage Bandwidth', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('Not Available', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('Overage Bandwidth', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('Not Available', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Not Available', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('Currently not charged', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php esc_html_e('Not Available', 'transcoder'); ?>
</td>
<td>
<?php esc_html_e('Currently not charged', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Amazon S3 Support', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</tr>
<tr>
<th>
<?php esc_html_e('Amazon S3 Support', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php esc_html_e('Amazon S3 Support', 'transcoder'); ?>
</th>
<td>
<?php esc_html_e('Not Available', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

</td>
<td>
<?php
$rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php
$rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
?>
<input type="checkbox" name="rtt_adaptive_bitrate_streaming" value="1" <?php checked($rtt_enable_adaptive_bitrate, 1); ?> <?php disabled(! $has_access); ?> />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php
$rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
?>
<input type="checkbox" name="rtt_adaptive_bitrate_streaming" value="1" <?php checked($rtt_enable_adaptive_bitrate, 1); ?> <?php disabled(! $has_access); ?> />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<?php
$rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
?>
<input type="checkbox" name="rtt_adaptive_bitrate_streaming" value="1" <?php checked($rtt_enable_adaptive_bitrate, 1); ?> <?php disabled(! $has_access); ?> />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space before "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore).

<i class="dashicons dashicons-info" style="padding-top:3px"></i>
<span class="rtm-tip">
<?php
esc_html_e('If enabled, Transcoder will generate multiple video files with different bitrates for adaptive streaming. This feature is only available for paid subscriptions.', 'transcoder');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<i class="dashicons dashicons-info" style="padding-top:3px"></i>
<span class="rtm-tip">
<?php
esc_html_e('If enabled, Transcoder will generate multiple video files with different bitrates for adaptive streaming. This feature is only available for paid subscriptions.', 'transcoder');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</tr>
<tr valign="top" class="<?php echo ! $has_access ? 'rtt-premium-feature' : ''; ?>">
<td scope="row">
<?php esc_html_e('Enable Watermark', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</tr>
<tr valign="top" class="<?php echo ! $has_access ? 'rtt-premium-feature' : ''; ?>">
<td scope="row">
<?php esc_html_e('Enable Watermark', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</td>
<td>
<?php
$rtt_watermark = get_option('rtt_watermark', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</td>
<td>
<?php
$rtt_watermark = get_option('rtt_watermark', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<?php
$rtt_watermark = get_option('rtt_watermark', true);
?>
<input type="checkbox" id="watermark-checkbox" name="rtt_watermark" value="1" <?php checked($rtt_watermark, 1); ?> <?php echo disabled( ! $has_access ); ?> />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<?php
$rtt_watermark = get_option('rtt_watermark', true);
?>
<input type="checkbox" id="watermark-checkbox" name="rtt_watermark" value="1" <?php checked($rtt_watermark, 1); ?> <?php echo disabled( ! $has_access ); ?> />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<i class="dashicons dashicons-info" style="padding-top:3px"></i>
<span class="rtm-tip">
<?php
esc_html_e('If enabled, Transcoder will add a watermark to the transcoded video. This feature is only available for paid subscriptions.', 'transcoder');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<i class="dashicons dashicons-info" style="padding-top:3px"></i>
<span class="rtm-tip">
<?php
esc_html_e('If enabled, Transcoder will add a watermark to the transcoded video. This feature is only available for paid subscriptions.', 'transcoder');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</td>
<td>
<?php
$rtt_watermark_text = get_option('rtt_watermark_text', 'EasyDAM');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</td>
<td>
<?php
$rtt_watermark_text = get_option('rtt_watermark_text', 'EasyDAM');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@@ -283,7 +351,7 @@
echo wp_kses(
sprintf(
/* translators: 1. URL of documentation page. */
__( 'Visit our <a href="%1$s">documentation page</a> for more details', 'transcoder' ),
__('Visit our <a href="%1$s">documentation page</a> for more details', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -283,7 +351,7 @@
echo wp_kses(
sprintf(
/* translators: 1. URL of documentation page. */
__( 'Visit our <a href="%1$s">documentation page</a> for more details', 'transcoder' ),
__('Visit our <a href="%1$s">documentation page</a> for more details', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@@ -317,41 +385,41 @@
</div>

<div class="metabox-holder transcoder-sidebar">
<?php do_action( 'rt_transcoder_before_widgets' ); ?>
<?php do_action('rt_transcoder_before_widgets'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -317,41 +385,41 @@
</div>

<div class="metabox-holder transcoder-sidebar">
<?php do_action( 'rt_transcoder_before_widgets' ); ?>
<?php do_action('rt_transcoder_before_widgets'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<div class="postbox" id="rt-spread-the-word">
<h3 class="hndle">
<span>
<?php esc_html_e( 'Spread the Word', 'transcoder' ); ?>
<?php esc_html_e('Spread the Word', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<div class="postbox" id="rt-spread-the-word">
<h3 class="hndle">
<span>
<?php esc_html_e( 'Spread the Word', 'transcoder' ); ?>
<?php esc_html_e('Spread the Word', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

</span>
</h3>
<div class="inside">
<div id="social" class="rtm-social-share">
<?php

// translators: Placeholde contains link of the home url.
$message = sprintf( esc_html__( 'I use @rtMediaWP http://rt.cx/rtmedia on %s', 'transcoder' ), home_url() );
$message = sprintf(esc_html__('I use @rtMediaWP http://rt.cx/rtmedia on %s', 'transcoder'), home_url());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

</span>
</h3>
<div class="inside">
<div id="social" class="rtm-social-share">
<?php

// translators: Placeholde contains link of the home url.
$message = sprintf( esc_html__( 'I use @rtMediaWP http://rt.cx/rtmedia on %s', 'transcoder' ), home_url() );
$message = sprintf(esc_html__('I use @rtMediaWP http://rt.cx/rtmedia on %s', 'transcoder'), home_url());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

?>
<p>
<a href="http://twitter.com/home/?status=<?php echo esc_attr( $message ); ?>" class="button twitter" target= "_blank" title="<?php esc_attr_e( 'Post to Twitter Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Post to Twitter', 'transcoder' ); ?>
<a href="http://twitter.com/home/?status=<?php echo esc_attr($message); ?>" class="button twitter" target="_blank" title="<?php esc_attr_e('Post to Twitter Now', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

?>
<p>
<a href="http://twitter.com/home/?status=<?php echo esc_attr( $message ); ?>" class="button twitter" target= "_blank" title="<?php esc_attr_e( 'Post to Twitter Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Post to Twitter', 'transcoder' ); ?>
<a href="http://twitter.com/home/?status=<?php echo esc_attr($message); ?>" class="button twitter" target="_blank" title="<?php esc_attr_e('Post to Twitter Now', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<a href="http://twitter.com/home/?status=<?php echo esc_attr( $message ); ?>" class="button twitter" target= "_blank" title="<?php esc_attr_e( 'Post to Twitter Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Post to Twitter', 'transcoder' ); ?>
<a href="http://twitter.com/home/?status=<?php echo esc_attr($message); ?>" class="button twitter" target="_blank" title="<?php esc_attr_e('Post to Twitter Now', 'transcoder'); ?>">
<?php esc_html_e('Post to Twitter', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<a href="http://twitter.com/home/?status=<?php echo esc_attr( $message ); ?>" class="button twitter" target= "_blank" title="<?php esc_attr_e( 'Post to Twitter Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Post to Twitter', 'transcoder' ); ?>
<a href="http://twitter.com/home/?status=<?php echo esc_attr($message); ?>" class="button twitter" target="_blank" title="<?php esc_attr_e('Post to Twitter Now', 'transcoder'); ?>">
<?php esc_html_e('Post to Twitter', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<span class="dashicons dashicons-twitter"></span>
</a>
</p>
<p>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e( 'Share on Facebook Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Share on Facebook', 'transcoder' ); ?>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e('Share on Facebook Now', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<span class="dashicons dashicons-twitter"></span>
</a>
</p>
<p>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e( 'Share on Facebook Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Share on Facebook', 'transcoder' ); ?>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e('Share on Facebook Now', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e( 'Share on Facebook Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Share on Facebook', 'transcoder' ); ?>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e('Share on Facebook Now', 'transcoder'); ?>">
<?php esc_html_e('Share on Facebook', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e( 'Share on Facebook Now', 'transcoder' ); ?>">
<?php esc_html_e( 'Share on Facebook', 'transcoder' ); ?>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://rtmedia.io/" class="button facebook" target="_blank" title="<?php esc_attr_e('Share on Facebook Now', 'transcoder'); ?>">
<?php esc_html_e('Share on Facebook', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<span class="dashicons dashicons-facebook"></span>
</a>
</p>
<p>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target= "_blank" title="<?php esc_attr_e( 'Rate rtMedia on Wordpress.org', 'transcoder' ); ?>">
<?php esc_html_e( 'Rate on Wordpress.org', 'transcoder' ); ?>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target="_blank" title="<?php esc_attr_e('Rate rtMedia on Wordpress.org', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<span class="dashicons dashicons-facebook"></span>
</a>
</p>
<p>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target= "_blank" title="<?php esc_attr_e( 'Rate rtMedia on Wordpress.org', 'transcoder' ); ?>">
<?php esc_html_e( 'Rate on Wordpress.org', 'transcoder' ); ?>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target="_blank" title="<?php esc_attr_e('Rate rtMedia on Wordpress.org', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target= "_blank" title="<?php esc_attr_e( 'Rate rtMedia on Wordpress.org', 'transcoder' ); ?>">
<?php esc_html_e( 'Rate on Wordpress.org', 'transcoder' ); ?>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target="_blank" title="<?php esc_attr_e('Rate rtMedia on Wordpress.org', 'transcoder'); ?>">
<?php esc_html_e('Rate on Wordpress.org', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target= "_blank" title="<?php esc_attr_e( 'Rate rtMedia on Wordpress.org', 'transcoder' ); ?>">
<?php esc_html_e( 'Rate on Wordpress.org', 'transcoder' ); ?>
<a href="http://wordpress.org/support/view/plugin-reviews/transcoder?rate=5#postform" class="button wordpress" target="_blank" title="<?php esc_attr_e('Rate rtMedia on Wordpress.org', 'transcoder'); ?>">
<?php esc_html_e('Rate on Wordpress.org', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<span class="dashicons dashicons-wordpress"></span>
</a>
</p>
<p>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e( 'Subscribe to our Feeds', 'transcoder' ); ?>">
<?php esc_html_e( 'Subscribe to our Feeds', 'transcoder' ); ?>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e('Subscribe to our Feeds', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<span class="dashicons dashicons-wordpress"></span>
</a>
</p>
<p>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e( 'Subscribe to our Feeds', 'transcoder' ); ?>">
<?php esc_html_e( 'Subscribe to our Feeds', 'transcoder' ); ?>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e('Subscribe to our Feeds', 'transcoder'); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e( 'Subscribe to our Feeds', 'transcoder' ); ?>">
<?php esc_html_e( 'Subscribe to our Feeds', 'transcoder' ); ?>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e('Subscribe to our Feeds', 'transcoder'); ?>">
<?php esc_html_e('Subscribe to our Feeds', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e( 'Subscribe to our Feeds', 'transcoder' ); ?>">
<?php esc_html_e( 'Subscribe to our Feeds', 'transcoder' ); ?>
<a href="https://rtmedia.io/feed/" class="button rss" target="_blank" title="<?php esc_attr_e('Subscribe to our Feeds', 'transcoder'); ?>">
<?php esc_html_e('Subscribe to our Feeds', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

@@ -361,7 +429,7 @@
<div class="postbox" id="rt-subscribe">
<h3 class="hndle">
<span>
<?php esc_html_e( 'Subscribe', 'transcoder' ); ?>
<?php esc_html_e('Subscribe', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -361,7 +429,7 @@
<div class="postbox" id="rt-subscribe">
<h3 class="hndle">
<span>
<?php esc_html_e( 'Subscribe', 'transcoder' ); ?>
<?php esc_html_e('Subscribe', 'transcoder'); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@@ -371,9 +439,9 @@
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate"
target="_blank" novalidate>
<div class="mc-field-group">
<input type="email" value="<?php echo esc_attr( $the_current_user->user_email ); ?>" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL" />
<input type="email" value="<?php echo esc_attr($the_current_user->user_email); ?>" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -371,9 +439,9 @@
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate"
target="_blank" novalidate>
<div class="mc-field-group">
<input type="email" value="<?php echo esc_attr( $the_current_user->user_email ); ?>" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL" />
<input type="email" value="<?php echo esc_attr($the_current_user->user_email); ?>" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

<input style="display:none;" type="checkbox" checked="checked" value="1" name="group[1721][1]" id="mce-group[1721]-1721-0" />
<input type="submit" value="<?php esc_attr_e( 'Subscribe', 'transcoder' ); ?>" name="subscribe" id="mc-embedded-subscribe" class="button" />
<input type="submit" value="<?php esc_attr_e('Subscribe', 'transcoder'); ?>" name="subscribe" id="mc-embedded-subscribe" class="button" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

<input style="display:none;" type="checkbox" checked="checked" value="1" name="group[1721][1]" id="mce-group[1721]-1721-0" />
<input type="submit" value="<?php esc_attr_e( 'Subscribe', 'transcoder' ); ?>" name="subscribe" id="mc-embedded-subscribe" class="button" />
<input type="submit" value="<?php esc_attr_e('Subscribe', 'transcoder'); ?>" name="subscribe" id="mc-embedded-subscribe" class="button" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

}

// Execute the FFmpeg command.
exec( $ffmpeg_command, $output, $return_var );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: exec() found. PHP system calls are often disabled by server admins (WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec).

exec( $ffmpeg_command, $output, $return_var );

if ( 0 === $return_var && file_exists( $output_file_path ) ) {
unlink( $uploaded_file_path );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: File system operations only work on the /tmp/ and wp-content/uploads/ directories. To avoid unexpected results, please use helper functions like get_temp_dir() or wp_get_upload_dir() to get the proper directory path when using functions such as unlink(). For more details, please see: https://docs.wpvip.com/technical-references/vip-go-files-system/local-file-operations/ (WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_unlink).


if ( 0 === $return_var && file_exists( $output_file_path ) ) {
unlink( $uploaded_file_path );
rename( $output_file_path, $uploaded_file_path );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: File system operations only work on the /tmp/ and wp-content/uploads/ directories. To avoid unexpected results, please use helper functions like get_temp_dir() or wp_get_upload_dir() to get the proper directory path when using functions such as rename(). For more details, please see: https://docs.wpvip.com/technical-references/vip-go-files-system/local-file-operations/ (WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_rename).

@@ -256,35 +265,44 @@ public function wp_media_transcoding( $wp_metadata, $attachment_id, $autoformat
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

@@ -256,35 +265,44 @@ public function wp_media_transcoding( $wp_metadata, $attachment_id, $autoformat
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -256,35 +265,44 @@
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@@ -256,35 +265,44 @@
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: Equals sign not aligned with surrounding assignments; expected 18 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning).

@@ -256,35 +265,44 @@
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

@@ -256,35 +265,44 @@
}
}

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
$rtt_watermark_text = get_option('rtt_watermark_text', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning).

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
$rtt_watermark_text = get_option('rtt_watermark_text', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

// Media settings.
$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
$rtt_watermark_text = get_option('rtt_watermark_text', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$rtt_adaptive_bitrate_streaming = $rtt_enable_adaptive_bitrate = get_option('rtt_adaptive_bitrate_streaming', false);
$rtt_watermark = get_option('rtt_watermark', false);
$rtt_watermark_text = get_option('rtt_watermark_text', false);
$rtt_watermark_text = sanitize_text_field( $rtt_watermark_text );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning).

'force' => 0,
'formats' => ( true === $autoformat ) ? ( ( 'video' === $type_array[0] ) ? 'mp4' : 'mp3' ) : $autoformat,
'thumbnail_count' => $options_video_thumb,
'stream' => boolval($rtt_adaptive_bitrate_streaming),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous scan continued.

'force' => 0,
'formats' => ( true === $autoformat ) ? ( ( 'video' === $type_array[0] ) ? 'mp4' : 'mp3' ) : $autoformat,
'thumbnail_count' => $options_video_thumb,
'stream' => boolval($rtt_adaptive_bitrate_streaming),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

'formats' => ( true === $autoformat ) ? ( ( 'video' === $type_array[0] ) ? 'mp4' : 'mp3' ) : $autoformat,
'thumbnail_count' => $options_video_thumb,
'stream' => boolval($rtt_adaptive_bitrate_streaming),
'watermark' => boolval($rtt_watermark),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

'formats' => ( true === $autoformat ) ? ( ( 'video' === $type_array[0] ) ? 'mp4' : 'mp3' ) : $autoformat,
'thumbnail_count' => $options_video_thumb,
'stream' => boolval($rtt_adaptive_bitrate_streaming),
'watermark' => boolval($rtt_watermark),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

$response['files'] = $upload_dir['baseurl'] . '/' . $transcoded_files['mp4'][0];
$response['thumbnail'] = $upload_dir['baseurl'] . '/' . $thumbnail;

global $wpdb;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Warning: Redeclaration of global variable $wpdb as global variable (VariableAnalysis.CodeAnalysis.VariableAnalysis.VariableRedeclaration).

'videojs-quality-menu-css',
$lib_path . '/css/videojs-contrib-quality-menu.min.css',
array(),
'1.0.3',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Trailing commas are not allowed in function calls in PHP 7.2 or earlier (PHPCompatibility.Syntax.NewFunctionCallTrailingComma.FoundInFunctionCall).

RT_TRANSCODER_PATH . '/assets/build/blocks/easydam-player/'
);

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).

@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => 'fd0a9a7cdb2f028af078');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).

@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => 'fd0a9a7cdb2f028af078');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).

@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => 'fd0a9a7cdb2f028af078');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: When a multi-item array uses associative keys, each value should start on a new line (WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound).

@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => 'fd0a9a7cdb2f028af078');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Expected 1 space before the array closer in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine).

@rtBot
Copy link
Contributor

rtBot commented Dec 10, 2024

GitHub API communication error. Please contact a human. (commit-ID: b5cff1e).

@rtBot
Copy link
Contributor

rtBot commented Dec 10, 2024

Total number of active review comments per pull request has been reached and some comments might not appear as a result. Please resolve some issues to see more (commit-ID: b5cff1e).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants