@@ -79,7 +79,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7979
8080 foreach ($ configuration ->getRemoteRepositories () as $ remoteRepository ) {
8181
82-
8382 $ foundPullRequests = $ this ->githubApiCaller ->findRepositoryPullRequestsBetweenDates (
8483 $ remoteRepository ,
8584 $ configuration ->getGithubToken (),
@@ -98,7 +97,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9897 $ username = $ foundPullRequest ->user ->login ;
9998 $ pullRequestUrl = $ foundPullRequest ->pull_request ->url ;
10099
101- $ changelogLine = sprintf ('* %s ([#%s](%s)) ' ,
100+ $ changelogLine = sprintf (
101+ '* %s ([#%s](%s)) ' ,
102102 $ foundPullRequest ->title ,
103103 $ foundPullRequest ->number ,
104104 $ pullRequestUrl
@@ -111,7 +111,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
111111 $ externalChangelogLines [] = $ changelogLine ;
112112 }
113113
114- $ externalRepositoryChangelogs [] = new ExternalRepositoryChangelog ($ remoteRepository , $ externalChangelogLines );
114+ $ externalRepositoryChangelogs [] = new ExternalRepositoryChangelog (
115+ $ remoteRepository ,
116+ $ externalChangelogLines
117+ );
115118 }
116119 }
117120
@@ -155,9 +158,9 @@ private function printToFile(string $releaseChangelogContents): void
155158 $ this ->symfonyStyle ->writeln (sprintf ('Release notes dumped into "%s" file ' , $ filePath ));
156159 }
157160
158-
159- private function createExternalRepositoryChangelogContents ( ExternalRepositoryChangelog $ externalRepositoriesChangelog): string
160- {
161+ private function createExternalRepositoryChangelogContents (
162+ ExternalRepositoryChangelog $ externalRepositoriesChangelog
163+ ): string {
161164 $ changelogContents = '## ' . $ externalRepositoriesChangelog ->getTitle ();
162165 $ changelogContents .= implode (PHP_EOL , $ externalRepositoriesChangelog ->getLines ());
163166 $ changelogContents .= PHP_EOL . PHP_EOL ;
0 commit comments