Skip to content

Commit fdaac5d

Browse files
committed
Fix simple liniting issues
1 parent 71c9531 commit fdaac5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mu-plugins/osi-api/osi-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ public function handle_redirects() {
358358
if ( ! empty( $_GET ) ) { // phpcs:ignore WordPress.Security.NonceVerification
359359
foreach ( $_GET as $key => $value ) { // phpcs:ignore WordPress.Security.NonceVerification
360360
// Remap reserved "name" param to avoid canonical redirect
361-
if ( $key === 'name' ) {
361+
if ( 'name' === $key ) {
362362
$key = 'license_name';
363363
}
364364

365365
$sanitized_key = sanitize_key( $key );
366366
$sanitized_value = is_array( $value )
367-
? array_map( 'sanitize_text_field', $value )
368-
: sanitize_text_field( $value );
367+
? array_map( 'sanitize_text_field', $value )
368+
: sanitize_text_field( $value );
369369

370370
$request->set_param( $sanitized_key, $sanitized_value );
371371
}

0 commit comments

Comments
 (0)