From 717e66048a5c0819c9c915952a85080dd153ed4b Mon Sep 17 00:00:00 2001 From: COQUARD Cyrille Date: Tue, 10 Oct 2023 15:33:10 +0200 Subject: [PATCH] Fixed PHPCS --- inc/classes/class-imagify-db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/classes/class-imagify-db.php b/inc/classes/class-imagify-db.php index 48ea45402..62aad17a7 100644 --- a/inc/classes/class-imagify-db.php +++ b/inc/classes/class-imagify-db.php @@ -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'";