mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
CS fixes
This commit is contained in:
parent
8a154d7300
commit
dbfd47eeca
7 changed files with 239 additions and 238 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue