1
0
Fork 0

Simplify duplicate case

pull/9165/head
username 2020-08-29 21:13:54 +02:00
parent 46cc387598
commit 3f09ae0737
1 changed files with 1 additions and 5 deletions

View File

@ -681,11 +681,7 @@ EOT
foreach ($package->getAutoload() as $type => $autoloads) {
$io->write('<comment>' . $type . '</comment>');
if ($type === 'psr-0') {
foreach ($autoloads as $name => $path) {
$io->write(($name ?: '*') . ' => ' . (is_array($path) ? implode(', ', $path) : ($path ?: '.')));
}
} elseif ($type === 'psr-4') {
if ($type === 'psr-0' || $type === 'psr-4') {
foreach ($autoloads as $name => $path) {
$io->write(($name ?: '*') . ' => ' . (is_array($path) ? implode(', ', $path) : ($path ?: '.')));
}