Compare commits
2 Commits
332551e2e3
...
7522d48ab9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7522d48ab9 | ||
|
|
b80e200f83 |
@@ -776,12 +776,14 @@ class TicketController extends Controller
|
||||
|
||||
if ($handled['unmerged'] !== []) {
|
||||
$parts[] = sprintf(
|
||||
'%s %s merged into it and %s been un-merged (status %s) so %s stay usable: %s.',
|
||||
'%s %s merged into it and %s been un-merged (status %s) so %s usable: %s.',
|
||||
count($handled['unmerged']),
|
||||
count($handled['unmerged']) === 1 ? 'ticket was' : 'tickets were',
|
||||
count($handled['unmerged']) === 1 ? 'has' : 'have',
|
||||
Ticket::STATUS_UNMERGED,
|
||||
count($handled['unmerged']) === 1 ? 'it' : 'they',
|
||||
// The verb agrees with the pronoun, so it lives in the same ternary:
|
||||
// "so it stays usable" / "so they stay usable".
|
||||
count($handled['unmerged']) === 1 ? 'it stays' : 'they stay',
|
||||
implode(', ', $handled['unmerged']),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user