fix extra whitespace
parent
5c50879aac
commit
68a4ac6b98
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue