fix extra whitespace
This commit is contained in:
parent
5c50879aac
commit
68a4ac6b98
1 changed files with 2 additions and 1 deletions
|
@ -204,12 +204,13 @@ class ImproveActionPhpheader extends ImproveAction
|
|||
{
|
||||
$res = preg_replace(
|
||||
'/^(\<\?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,
|
||||
1,
|
||||
$count
|
||||
);
|
||||
if ($count) {
|
||||
$res = str_replace("\n * \n", "\n *\n", $res);
|
||||
$this->setSuccess(__('Write new doc bloc content'));
|
||||
}
|
||||
return $res;
|
||||
|
|
Loading…
Reference in a new issue