Improve OpenSSL library description

main
Chris Smith 9 years ago
parent e9e2514b5e
commit f6f273c4b6

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

Loading…
Cancel
Save