in src/shipit/filter/ShipItMessageSections.php [103:119]
public static function buildMessage(dict<string, string> $sections): string {
$out = '';
foreach ($sections as $section => $text) {
if (PHP\ctype_space($text) || $text === '') {
continue;
}
$section_head = Str\capitalize_words($section).":";
$text = Str\trim($text);
if (!self::hasMoreThanOneNonEmptyLine($text)) {
$section_head .= ' ';
} else {
$section_head .= "\n";
}
$out .= $section_head."$text\n\n";
}
return Str\trim_right($out);
}