diff --git a/src/DocBlock/Tags/Source.php b/src/DocBlock/Tags/Source.php index f0c3101..d3f5523 100644 --- a/src/DocBlock/Tags/Source.php +++ b/src/DocBlock/Tags/Source.php @@ -104,14 +104,12 @@ final class Source extends BaseTag implements Factory\StaticMethod $startingLine = (string) $this->startingLine; - $lineCount = $this->lineCount !== null ? '' . $this->lineCount : ''; + $lineCount = $this->lineCount !== null ? ' ' . $this->lineCount : ''; return $startingLine - . ($lineCount !== '' - ? ($startingLine || $startingLine === '0' ? ' ' : '') . $lineCount - : '') + . $lineCount . ($description !== '' - ? ($startingLine || $startingLine === '0' || $lineCount !== '' ? ' ' : '') . $description + ? ' ' . $description : ''); } }