| 1 | <?php |
||
| 11 | class ConfigFacade |
||
| 12 | { |
||
| 13 | 6 | public static function getUserAgent() |
|
| 14 | { |
||
| 15 | 6 | static $ua; |
|
| 16 | 6 | if ($ua) { |
|
| 17 | 5 | return $ua; |
|
| 18 | } |
||
| 19 | |||
| 20 | 1 | return $ua = sprintf( |
|
| 21 | 1 | 'Composer/%s (%s; %s; %s)', |
|
| 22 | 1 | Composer::VERSION === '@package_version@' ? 'source' : Composer::VERSION, |
|
| 23 | 1 | php_uname('s'), |
|
| 24 | 1 | php_uname('r'), |
|
| 25 | 1 | self::getPHPVersion() |
|
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @codeCoverageIgnore |
||
| 31 | */ |
||
| 32 | private static function getPHPVersion() |
||
| 39 | } |
||
| 40 |