fix extra whitespace

master
Jean-Christian Paul Denis 2021-11-01 11:36:35 +01:00
parent 5c50879aac
commit 68a4ac6b98
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 1 deletions

View File

@ -204,12 +204,13 @@ class ImproveActionPhpheader extends ImproveAction
{ {
$res = preg_replace( $res = preg_replace(
'/^(\<\?php[\n|\r\n]+)/', '/^(\<\?php[\n|\r\n]+)/',
'<?php' . "\n/**\n * " . str_replace("\n", "\n * ", trim($this->bloc)) . "\n */\n\n", '<?php' . "\n/**\n * " . str_replace("\n", "\n * ", trim($this->bloc)) . "\n */\n",
$content, $content,
1, 1,
$count $count
); );
if ($count) { if ($count) {
$res = str_replace("\n * \n", "\n *\n", $res);
$this->setSuccess(__('Write new doc bloc content')); $this->setSuccess(__('Write new doc bloc content'));
} }
return $res; return $res;