1
0
Fork 0

Minor style fix

pull/592/merge
Jordi Boggiano 2012-05-12 17:44:20 +02:00
parent e84e550df3
commit 160d2e0847
1 changed files with 4 additions and 2 deletions

View File

@ -101,8 +101,10 @@ EOT
if (!empty($manifest['license'])) {
$licenseValidator = new SpdxLicenseIdentifier();
if (!$licenseValidator->validate($manifest['license'])) {
$warnings[] = sprintf('License %s is not a valid SPDX license identifier', json_encode($manifest['license']));
$warnings[] = 'see http://www.spdx.org/licenses/';
$warnings[] = sprintf(
'License %s is not a valid SPDX license identifier, see http://www.spdx.org/licenses/',
json_encode($manifest['license'])
);
}
} else {
$warnings[] = 'No license specified, it is recommended to do so';