1
0
Fork 0

Improve OpenSSL library description

pull/4875/head
Chris Smith 2016-02-04 00:10:34 +00:00
parent e9e2514b5e
commit f6f273c4b6
1 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,7 @@ class PlatformRepository extends ArrayRepository
// relying on them.
foreach ($loadedExtensions as $name) {
$prettyVersion = null;
$description = 'The '.$name.' PHP library';
switch ($name) {
case 'curl':
$curlVersion = curl_version();
@ -159,6 +160,8 @@ class PlatformRepository extends ArrayRepository
return $match[1].'.'.$patchVersion;
}, OPENSSL_VERSION_TEXT);
$description = OPENSSL_VERSION_TEXT;
break;
case 'pcre':
@ -185,7 +188,7 @@ class PlatformRepository extends ArrayRepository
}
$lib = new CompletePackage('lib-'.$name, $version, $prettyVersion);
$lib->setDescription('The '.$name.' PHP library');
$lib->setDescription($description);
$this->addPackage($lib);
}