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