Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit ee9a334

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed

‎src/Symfony/Installer/DownloadCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/DownloadCommand.php
+2-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.