Skip to content
Snippets Groups Projects
Commit 75e55841 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Provide status messages while removing standards

parent 27c53700
2 merge requests!21Release 0.3.0,!20Feature/17 write status messages to stdout
......@@ -119,14 +119,17 @@ class Installer extends LibraryInstaller
{
$sourceStandards = $this->getSourceStandards($package);
$destinationStandards = $this->getDestinationStandards($repo);
$this->io->writeError(' Removing PHP-CodeSniffer Standards:', false);
foreach ($sourceStandards as $sourceStandard) {
if (!$destinationStandards->hasStandard($sourceStandard)) {
continue;
}
$this->io->writeError(sprintf(' <info>%s</info>', $sourceStandard->getName()));
$destinationStandard = $destinationStandards->getStandard($sourceStandard);
$this->filesystem->removeDirectory($destinationStandard->getPath());
}
$this->io->writeError('');
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment