Skip to content

Commit

Permalink
Fixed PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 committed Oct 10, 2023
1 parent 88e43fa commit 717e660
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/classes/class-imagify-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ public static function get_extensions_where_clause( $args = false ) {
return $prepared ? str_replace( '%', '%%', $query[ $key ] ) : $query[ $key ];
}

$extensions = array_map(function ($ex) {
return strrev($ex);
$extensions = array_map(function ( $ex ) {
return strrev( $ex );
}, $extensions);

$regex = '^' . implode('\..*|^', $extensions) . '\..*';
$regex = '^' . implode( '\..*|^', $extensions ) . '\..*';

if ( $matching ) {
$query[ $key ] = "AND REVERSE (LOWER( $alias.meta_value )) REGEXP '$regex'";
Expand Down

0 comments on commit 717e660

Please sign in to comment.