Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit ee9a334

Browse files
committed
Minor tweaks for the previous commit to follow common Symfony code practices
1 parent c1b71a9 commit ee9a334

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Symfony/Installer/DownloadCommand.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ protected function getGuzzleClient()
214214

215215
// check if the client must use a proxy server
216216
if (!empty($_SERVER['HTTP_PROXY']) || !empty($_SERVER['http_proxy'])) {
217-
$proxy = !empty($_SERVER['http_proxy']) ? $_SERVER['http_proxy'] : $_SERVER['HTTP_PROXY'];
218-
$defaults['proxy'] = $proxy;
217+
$defaults['proxy'] = !empty($_SERVER['http_proxy']) ? $_SERVER['http_proxy'] : $_SERVER['HTTP_PROXY'];
219218
}
220219

221220
if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG) {
@@ -225,9 +224,7 @@ protected function getGuzzleClient()
225224
try {
226225
$handler = Utils::getDefaultHandler();
227226
} catch (\RuntimeException $e) {
228-
throw new \RuntimeException(
229-
'The Symfony installer requires the php-curl extension or the allow_url_fopen ini setting.'
230-
);
227+
throw new \RuntimeException('The Symfony installer requires the php-curl extension or the allow_url_fopen ini setting.');
231228
}
232229

233230
return new Client(array('defaults' => $defaults, 'handler' => $handler));

0 commit comments

Comments
 (0)