1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add return after every special type

This commit is contained in:
Matthew Brown 2017-09-16 15:00:50 -04:00
parent 391696bc83
commit 7c261d7d1f

View File

@ -520,10 +520,16 @@ class CommentChecker
/** @var int */
$special_type_width = max($special_type_lengths) + 1;
$special_types = count($parsed_doc_comment['specials']);
foreach ($parsed_doc_comment['specials'] as $type => $lines) {
foreach ($lines as $line) {
$doc_comment_text .= $left_padding . ' * @' . str_pad($type, $special_type_width) . $line . PHP_EOL;
}
if ($special_types-- > 1) {
$doc_comment_text .= $left_padding . ' *'. PHP_EOL;
}
}
}