From d4c350c520dc8945f6b88ecfbb409720d08c74fa Mon Sep 17 00:00:00 2001 From: Louis Wolmarans Date: Wed, 29 Oct 2025 06:00:05 +0200 Subject: [PATCH 1/2] fix: improve file based execution with namespaced PHP snippets --- src/php/flat-files/handlers/php-snippet-handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/php/flat-files/handlers/php-snippet-handler.php b/src/php/flat-files/handlers/php-snippet-handler.php index 5d306392..dc36d68c 100644 --- a/src/php/flat-files/handlers/php-snippet-handler.php +++ b/src/php/flat-files/handlers/php-snippet-handler.php @@ -12,6 +12,7 @@ public function get_dir_name(): string { } public function wrap_code( string $code ): string { - return " Date: Wed, 29 Oct 2025 06:45:42 +0200 Subject: [PATCH 2/2] Refactor wrap_code to apply filters before concatenation --- src/php/flat-files/handlers/php-snippet-handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php/flat-files/handlers/php-snippet-handler.php b/src/php/flat-files/handlers/php-snippet-handler.php index dc36d68c..aaa212f9 100644 --- a/src/php/flat-files/handlers/php-snippet-handler.php +++ b/src/php/flat-files/handlers/php-snippet-handler.php @@ -12,7 +12,7 @@ public function get_dir_name(): string { } public function wrap_code( string $code ): string { - $code = "