diff --git a/src/Command/CopyAssetsCommand.php b/src/Command/CopyAssetsCommand.php index ee4a38d20..364f31fc3 100644 --- a/src/Command/CopyAssetsCommand.php +++ b/src/Command/CopyAssetsCommand.php @@ -85,14 +85,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } - if ($rows) { + if (! empty($rows)) { $io->table(['', 'Folder', 'Method / Error'], $rows); } if ($exitCode !== 0) { $io->error('Some errors occurred while installing assets.'); } else { - $io->success($rows ? 'All assets were successfully installed.' : 'No assets were provided by any bundle.'); + $io->success(! empty($rows) ? 'All assets were successfully installed.' : 'No assets were provided by any bundle.'); } return $exitCode;