| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function generate(string $user, string $repository, string $milestone, OutputInterface $output) : void |
||
| 26 | { |
||
| 27 | $issues = $this->issueRepository->getMilestoneIssues($user, $repository, $milestone); |
||
| 28 | $issueGroups = $this->issueGrouper->groupIssues($issues); |
||
| 29 | |||
| 30 | $output->writeln([ |
||
| 31 | sprintf('## %s', $milestone), |
||
| 32 | '', |
||
| 33 | sprintf('Total issues resolved: **%s**', count($issues)), |
||
| 34 | ]); |
||
| 35 | |||
| 36 | foreach ($issueGroups as $issueGroup) { |
||
| 37 | $output->writeln([ |
||
| 38 | '', |
||
| 39 | sprintf('### %s', $issueGroup->getName()), |
||
| 40 | '', |
||
| 41 | ]); |
||
| 42 | |||
| 43 | foreach ($issueGroup->getIssues() as $issue) { |
||
| 44 | $output->writeln($issue->render()); |
||
| 45 | } |
||
| 49 |