From 68a4ac6b98d446f8989f68cd8cf470717280fb6a Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 1 Nov 2021 11:36:35 +0100 Subject: [PATCH] fix extra whitespace --- inc/lib.improve.action.phpheader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/lib.improve.action.phpheader.php b/inc/lib.improve.action.phpheader.php index 519b096..232224d 100644 --- a/inc/lib.improve.action.phpheader.php +++ b/inc/lib.improve.action.phpheader.php @@ -204,12 +204,13 @@ class ImproveActionPhpheader extends ImproveAction { $res = preg_replace( '/^(\<\?php[\n|\r\n]+)/', - 'bloc)) . "\n */\n\n", + 'bloc)) . "\n */\n", $content, 1, $count ); if ($count) { + $res = str_replace("\n * \n", "\n *\n", $res); $this->setSuccess(__('Write new doc bloc content')); } return $res;