diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index 7dade55ef..b209679f5 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/src/Composer/Command/DiagnoseCommand.php @@ -595,11 +595,11 @@ EOT $io = new BufferIO(); $result = $auditor->audit($io, $repoSet, $packages, Auditor::FORMAT_TABLE, true, [], Auditor::ABANDONED_IGNORE); } catch (\Throwable $e) { - return 'Failed performing audit: '.$e->getMessage().''; + return 'Failed performing audit: '.$e->getMessage().''; } if ($result > 0) { - return 'Audit found some issues:' . PHP_EOL . $io->getOutput(); + return 'Audit found some issues:' . PHP_EOL . $io->getOutput(); } return true;