mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
add more unit tests and normalize the "__toString" methods
-> fix code style v2
This commit is contained in:
@@ -107,7 +107,11 @@ final class Source extends BaseTag implements Factory\StaticMethod
|
|||||||
$lineCount = $this->lineCount !== null ? '' . $this->lineCount : '';
|
$lineCount = $this->lineCount !== null ? '' . $this->lineCount : '';
|
||||||
|
|
||||||
return $startingLine
|
return $startingLine
|
||||||
. ($lineCount !== '' ? ($startingLine || $startingLine === '0' ? ' ' : '') . $lineCount : '')
|
. ($lineCount !== ''
|
||||||
. ($description !== '' ? ($startingLine || $startingLine === '0' || $lineCount !== '' ? ' ' : '') . $description : '');
|
? ($startingLine || $startingLine === '0' ? ' ' : '') . $lineCount
|
||||||
|
: '')
|
||||||
|
. ($description !== ''
|
||||||
|
? ($startingLine || $startingLine === '0' || $lineCount !== '' ? ' ' : '') . $description
|
||||||
|
: '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user