Skip to content

Commit

Permalink
Adopt composer list style output
Browse files Browse the repository at this point in the history
Make sure distributor output fits nicely into the Composer output.
  • Loading branch information
sebastianfeldmann committed Nov 30, 2020
1 parent f138d53 commit d214efe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ConfiguredMediator.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ private function deleteFile(File $phar, string $binDir): void
if (is_file($pharLocation)) {
if (!is_writable($pharLocation)) {
$this->io->write(
sprintf(' Can not remove phar \'%1$s\' (insufficient permissions)', $phar->pharName())
sprintf(' - Can not remove phar \'%1$s\' (insufficient permissions)', $phar->pharName())
);
return;
}
$this->io->write(sprintf(' Removing phar \'%1$s\'', $phar->pharName()));
$this->io->write(sprintf(' - Removing phar \'%1$s\'', $phar->pharName()));
unlink($pharLocation);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Service/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@ public function install(FileList $fileList) : void

foreach ($fileList->getList() as $file) {
$this->io->write(sprintf(
' Downloading artifact in version %2$s from %1$s',
' - Downloading artifact in version %2$s from %1$s',
$versionReplacer->replace($file->pharUrl()->toString()),
$packageVersion->fullVersion()
));

$pharLocation = $this->downloadPhar($versionReplacer, $file);

if (!$file->signatureUrl()) {
$this->io->write(' No digital signature found! Use this file with care!');
$this->io->write(' - No digital signature found! Use this file with care!');
continue;
}

$signatureLocation = $this->downloadSignature($versionReplacer, $file);
$this->verifyPharWithSignature($pharLocation, $signatureLocation);
$this->io->write(' PHAR signature successfully verified');
$this->io->write(' - PHAR signature successfully verified');
unlink($signatureLocation->getPathname());
}
}
Expand Down

0 comments on commit d214efe

Please sign in to comment.