add more unit tests and normalize the "__toString" methods

-> fix code style v2
This commit is contained in:
Lars Moelleken
2020-09-03 02:51:17 +02:00
parent 4438ee7955
commit 5bb97a97c0
+6 -2
View File
@@ -107,7 +107,11 @@ final class Source extends BaseTag implements Factory\StaticMethod
$lineCount = $this->lineCount !== null ? '' . $this->lineCount : '';
return $startingLine
. ($lineCount !== '' ? ($startingLine || $startingLine === '0' ? ' ' : '') . $lineCount : '')
. ($description !== '' ? ($startingLine || $startingLine === '0' || $lineCount !== '' ? ' ' : '') . $description : '');
. ($lineCount !== ''
? ($startingLine || $startingLine === '0' ? ' ' : '') . $lineCount
: '')
. ($description !== ''
? ($startingLine || $startingLine === '0' || $lineCount !== '' ? ' ' : '') . $description
: '');
}
}