This repository was archived by the owner on Nov 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,7 @@ protected function getGuzzleClient()
214
214
215
215
// check if the client must use a proxy server
216
216
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 ' ];
219
218
}
220
219
221
220
if ($ this ->output ->getVerbosity () >= OutputInterface::VERBOSITY_DEBUG ) {
@@ -225,9 +224,7 @@ protected function getGuzzleClient()
225
224
try {
226
225
$ handler = Utils::getDefaultHandler ();
227
226
} 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. ' );
231
228
}
232
229
233
230
return new Client (array ('defaults ' => $ defaults , 'handler ' => $ handler ));
You can’t perform that action at this time.
0 commit comments