1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00
This commit is contained in:
Jordi Boggiano 2015-04-15 01:21:03 +01:00
parent 8a154d7300
commit dbfd47eeca
7 changed files with 239 additions and 238 deletions

View file

@ -389,11 +389,11 @@ EOT
$licenses = $package->getLicense();
foreach($licenses as $licenseId) {
foreach ($licenses as $licenseId) {
$license = $spdxLicense->getLicenseByIdentifier($licenseId); // keys: 0 fullname, 1 osi, 2 url
// is license OSI approved?
if($license[1] === true) {
if ($license[1] === true) {
$out = sprintf('%s (%s) (OSI approved) %s', $license[0], $licenseId, $license[2]);
} else {
$out = sprintf('%s (%s) %s', $license[0], $licenseId, $license[2]);