From a753de7014c667d29d05f09698fc4a648826c885 Mon Sep 17 00:00:00 2001 From: Krystian Wojciechowski Date: Mon, 7 Aug 2023 11:17:51 +0200 Subject: [PATCH] fix: braces and formatting on if - ImportExport.php --- src/Admin/ImportExport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Admin/ImportExport.php b/src/Admin/ImportExport.php index 72633c837..465b87537 100644 --- a/src/Admin/ImportExport.php +++ b/src/Admin/ImportExport.php @@ -216,8 +216,9 @@ public function importRequest() 'rb' ); - if ( !$file ) wp_send_json_error('Can\'t read the file.'); - + if (! $file) { + wp_send_json_error("Can't read the file."); + } $json = fread( $file,