From 45d4a1d8ac5eb1f53ebc303918095958d85e6735 Mon Sep 17 00:00:00 2001 From: hipot Date: Fri, 29 Dec 2023 17:48:16 +0200 Subject: [PATCH] Refactor script code and eliminate unneeded whitespace Refactored and condensed script commands in useful.sh to improve readability and efficiency. Also updated mime encoding format in ContextUtils.php across two repos by removing unnecessary spaces, enhancing data presentation and readability. --- lib/classes/Hipot/Utils/ContextUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/Hipot/Utils/ContextUtils.php b/lib/classes/Hipot/Utils/ContextUtils.php index 6d49244..a62d38d 100644 --- a/lib/classes/Hipot/Utils/ContextUtils.php +++ b/lib/classes/Hipot/Utils/ContextUtils.php @@ -208,7 +208,7 @@ public static function getInlineBase64Image(string $img_file): ?string return null; } - return 'data: '.mime_content_type($img_file).';base64,'.base64_encode(file_get_contents($img_file)); + return 'data:'.mime_content_type($img_file).';base64,'.base64_encode(file_get_contents($img_file)); } /**