Skip to content

Commit bcaa04d

Browse files
committed
Fix simple liniting issues
1 parent 451d479 commit bcaa04d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ public function get_licenses( WP_REST_Request $data ) {
145145
'value' => $regex,
146146
'compare' => str_contains( $spdx, '*' ) ? 'REGEXP' : '==',
147147
);
148-
// // Add the filter to search by SPDX I
149-
// add_filter( 'posts_where', array( $this, 'posts_where_spdx_like' ), 10, 2 );
150-
// $args['spdx_like'] = $this->cast_wildcard_to_sql_like( $spdx ); // Use the spdx identifier to filter by SPDX ID
151148
} elseif ( ! empty( $keyword ) ) {
152149
// Add a tax query on taxonomy-license-category where passed term is a the slug
153150
$args['tax_query'] = array(
@@ -324,7 +321,7 @@ function ( $category ) {
324321
*
325322
* @return mixed The sanitized value.
326323
*/
327-
public function sanitize_value( $value ) {
324+
public function sanitize_value( $value ) { // phpcs:ignore
328325
return is_bool( $value ) ? $value : esc_html( $value );
329326
}
330327

0 commit comments

Comments
 (0)