Skip to content

Commit

Permalink
feat: improve error message, inline array merge
Browse files Browse the repository at this point in the history
  • Loading branch information
maikschneider committed Aug 12, 2024
1 parent 16be8e5 commit a8ffee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/FixMissingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$this->renderTableForFiles($files, $io);

$io->warning('Found ' . count($files) . ' sys_files with missing meta data.');
$io->warning('Found ' . count($files) . ' corrupted sys_files.');

if ($missingFileCount) {
$io->error('There are ' . $missingFileCount . ' missing files.');
Expand Down
4 changes: 1 addition & 3 deletions Classes/Service/MetaDataService.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public function getErrors(): array
public function getCorruptedFiles(): array
{
$files = $this->sysFileRepository->getImagesWithoutDimensions();
$files = array_merge($files, $this->sysFileRepository->getWithoutMetaData());

return $files;
return array_merge($files, $this->sysFileRepository->getWithoutMetaData());
}

public function createMetaDataForFile(array &$file): bool
Expand Down

0 comments on commit a8ffee1

Please sign in to comment.