@@ -29,7 +29,7 @@ public function getName(): string
2929
3030 public function report (ProcessResult $ processResult , Configuration $ configuration ): void
3131 {
32- $ this ->reportFileDiffs ($ processResult ->getFileDiffs (), false );
32+ $ this ->reportFileDiffs ($ processResult ->getFileDiffs (), false , $ configuration -> shouldShowChangelog () );
3333
3434 // to keep space between progress bar and success message
3535 if ($ configuration ->shouldShowProgressBar () && $ processResult ->getFileDiffs () === []) {
@@ -43,7 +43,7 @@ public function report(ProcessResult $processResult, Configuration $configuratio
4343 /**
4444 * @param FileDiff[] $fileDiffs
4545 */
46- private function reportFileDiffs (array $ fileDiffs , bool $ absoluteFilePath ): void
46+ private function reportFileDiffs (array $ fileDiffs , bool $ absoluteFilePath, bool $ showChangelog ): void
4747 {
4848 if (\count ($ fileDiffs ) <= 0 ) {
4949 return ;
@@ -68,7 +68,9 @@ private function reportFileDiffs(array $fileDiffs, bool $absoluteFilePath): void
6868
6969 if ($ fileDiff ->getAppliedRules () !== []) {
7070 $ this ->symfonyStyle ->writeln ('<options=underscore>Applied rules:</> ' );
71- $ this ->symfonyStyle ->listing ($ fileDiff ->getAppliedRules ());
71+ $ this ->symfonyStyle ->listing (
72+ $ showChangelog ? $ fileDiff ->getChangelogsLines () : $ fileDiff ->getFractorShortClasses ()
73+ );
7274 $ this ->symfonyStyle ->newLine ();
7375 }
7476 }
0 commit comments