diff --git a/Components/FeatureAdminComponentScreenshots/functions.php b/Components/FeatureAdminComponentScreenshots/functions.php index 97f3e5e53..95cadb317 100644 --- a/Components/FeatureAdminComponentScreenshots/functions.php +++ b/Components/FeatureAdminComponentScreenshots/functions.php @@ -1,4 +1,5 @@ console.{$logType}('{$title}', '({$type})', {$output});\n"; diff --git a/lib/Utils/TimberDynamicResize.php b/lib/Utils/TimberDynamicResize.php index 53595d19d..b9cab975e 100644 --- a/lib/Utils/TimberDynamicResize.php +++ b/lib/Utils/TimberDynamicResize.php @@ -224,11 +224,13 @@ protected function generateImage($url, $w, $h, $crop, $force = false) if ($this->webpEnabled) { $fileinfo = pathinfo($resizedUrl); - if (in_array($fileinfo['extension'], [ + if ( + in_array($fileinfo['extension'], [ 'jpeg', 'jpg', 'png', - ])) { + ]) + ) { ImageHelper::img_to_webp($resizedUrl); } } diff --git a/phpcs.ruleset.xml b/phpcs.ruleset.xml index 7bfd3ea66..c7064bc41 100644 --- a/phpcs.ruleset.xml +++ b/phpcs.ruleset.xml @@ -16,5 +16,5 @@ - +