From f6f273c4b6df4cedc1a644578a82ff107067d1b8 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 4 Feb 2016 00:10:34 +0000 Subject: [PATCH] Improve OpenSSL library description --- src/Composer/Repository/PlatformRepository.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 1082c5404..aa1335153 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/src/Composer/Repository/PlatformRepository.php @@ -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); }