We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d281b3 commit 9b36e81Copy full SHA for 9b36e81
src/Utils/PhpDocGenerator.php
@@ -6,9 +6,10 @@ class PhpDocGenerator
6
{
7
public function fromText(string $text, int $spaces = 0, bool $deleteEmptyLines = false): string
8
9
- $result = $this->prependSpaces("/**\n", $spaces);
+ $eol = PHP_EOL;
10
+ $result = $this->prependSpaces("/**{$eol}", $spaces);
11
foreach ($this->convertTextToLines($text, $deleteEmptyLines) as $line) {
- $result .= $this->prependSpaces(" * {$this->safeLine($line)}\n", $spaces);
12
+ $result .= $this->prependSpaces(" * {$this->safeLine($line)}{$eol}", $spaces);
13
}
14
$result .= $this->prependSpaces(" */", $spaces);
15
0 commit comments