Skip to content

Commit

Permalink
Don't display image timestamp if no image is there
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jul 3, 2022
1 parent 2f733ba commit 581c67f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Console/Command/TestUriCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$rows[] = ['Target path', $targetPath];
$rows[] = ['Target exists', $this->getYesNo($this->fileUtil->uriExists($targetUri))];
$rows[] = ['Target modification time', date('r', $this->fileUtil->getModificationTime($targetPath))];
$modificationTime = $this->fileUtil->getModificationTime($targetPath);
$modificationTimeFormatted = $modificationTime ? date('r', $modificationTime) : 'n/a';
$rows[] = ['Target modification time', $modificationTimeFormatted];

$rows[] = ['Source is newer than target', $this->getYesNo($this->fileUtil->isNewerThan($path, $targetPath))];

Expand Down

0 comments on commit 581c67f

Please sign in to comment.