Display all yes RSVP names

This commit is contained in:
Oliver Davies 2020-04-29 23:18:51 +01:00
parent 371ea1310b
commit 48aa11b38e

View file

@ -79,8 +79,8 @@ class GetRaffleWinnerCommand extends Command
$io = new SymfonyStyle($input, $output);
$this->retrieveRsvps($input);
$io->comment(sprintf('%d RSVPs', $this->rsvps->count()));
$io->comment(sprintf('%s \'yes\' RSVPs', $this->yesRsvps->count()));
$io->section(sprintf('%s \'yes\' RSVPs', $this->yesRsvps->count()));
$io->listing($this->yesRsvps->pluck('member.name')->sort()->toArray());
$this->pickWinner();
$io->success(