Skip to content

Commit

Permalink
Comply phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Feb 27, 2024
1 parent 0f79405 commit 7ec715c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ public function delete_nextgen_files( $keep_full = false, $all_next_gen = false
* @since 2.2
*
* @param string $file_path Path to the non-next-gen file.
* @param bool $all_next_gen True: will delete every next-gen format. False: will delete only the current enabled format.
* @param bool $all_next_gen True: will delete every next-gen format. False: will delete only the current enabled format.
* @return void|WP_Error A \WP_Error object on failure.
*/
protected function delete_nextgen_file( $file_path, $all_next_gen = false ) {
Expand All @@ -1454,11 +1454,11 @@ protected function delete_nextgen_file( $file_path, $all_next_gen = false ) {
}

$next_gen_file = new File( $file_path );
$formats = $this->extensions;
$formats = $this->extensions;

if ( ! $all_next_gen ) {
$formats = imagify_nextgen_images_formats();
}
if ( ! $all_next_gen ) {
$formats = imagify_nextgen_images_formats();
}
// Delete next-gen images.
foreach ( $formats as $extension ) {
$this->delete_file( $next_gen_file->get_path_to_nextgen( $extension ) );
Expand Down

0 comments on commit 7ec715c

Please sign in to comment.