fix extra whitespace

This commit is contained in:
Jean-Christian Denis 2021-11-01 11:36:35 +01:00
parent 5c50879aac
commit 68a4ac6b98
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

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;