Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 1c47a65

Browse files
committed
Fix phpcs issues
1 parent 3f83f6c commit 1c47a65

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

admin/rt-retranscode-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ public function add_search_mime_types( $where ) {
999999
*/
10001000
function retranscode_media() {
10011001

1002-
global $RetranscodeMedia;
1002+
global $RetranscodeMedia; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
10031003

1004-
$RetranscodeMedia = new RetranscodeMedia();
1004+
$RetranscodeMedia = new RetranscodeMedia(); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
10051005
}
10061006

10071007
?>

inc/helpers/custom-functions.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
* @package transcoder
66
*/
77

8-
98
/**
109
* This method is an improved version of PHP's filter_input() and
1110
* works well on PHP CLI as well which PHP default method does not.
1211
* Also Provide support INPUT_REQUEST.
1312
*
14-
*
1513
* Reference:
1614
* - https://bugs.php.net/bug.php?id=49184
1715
* - https://bugs.php.net/bug.php?id=54672
@@ -32,15 +30,13 @@ function transcoder_filter_input( $type, $variable_name, $filter = FILTER_DEFAUL
3230
* Reference: https://bugs.php.net/bug.php?id=54672
3331
*/
3432
if ( INPUT_REQUEST === $type ) {
35-
36-
if ( isset( $_POST[ $variable_name ] ) ) {
33+
if ( isset( $_POST[ $variable_name ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
3734
$type = INPUT_POST;
38-
} elseif ( isset( $_GET[ $variable_name ] ) ) {
35+
} elseif ( isset( $_GET[ $variable_name ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
3936
$type = INPUT_GET;
4037
} else {
4138
return null;
4239
}
43-
4440
}
4541

4642
if ( php_sapi_name() !== 'cli' ) {
@@ -139,4 +135,4 @@ function transcoder_filter_input( $type, $variable_name, $filter = FILTER_DEFAUL
139135

140136
return filter_var( $input, $filter );
141137

142-
}
138+
}

0 commit comments

Comments
 (0)