@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | } |
509 | 509 | return (string) preg_replace_callback( |
510 | 510 | '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/%]++|%(?![a-fA-F0-9]{2}))/', |
511 | - function ($matches) { |
|
511 | + function($matches) { |
|
512 | 512 | return rawurlencode($matches[0]); |
513 | 513 | }, |
514 | 514 | $path |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | } |
539 | 539 | return (string) preg_replace_callback( |
540 | 540 | '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/?%]++|%(?![a-fA-F0-9]{2}))/', |
541 | - function ($matches) { |
|
541 | + function($matches) { |
|
542 | 542 | return rawurlencode($matches[0]); |
543 | 543 | }, |
544 | 544 | $query |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | if ($fragment !== '') { |
559 | 559 | return (string) preg_replace_callback( |
560 | 560 | '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/?%]++|%(?![a-fA-F0-9]{2}))/', |
561 | - function ($matches) { |
|
561 | + function($matches) { |
|
562 | 562 | return rawurlencode($matches[0]); |
563 | 563 | }, |
564 | 564 | $fragment |
@@ -518,7 +518,7 @@ |
||
518 | 518 | protected function send($ch): HttpResponse |
519 | 519 | { |
520 | 520 | $responseHeaders = []; |
521 | - curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use (&$responseHeaders) { |
|
521 | + curl_setopt($ch, CURLOPT_HEADERFUNCTION, function($curl, $header) use (&$responseHeaders) { |
|
522 | 522 | if (strpos($header, ':') !== false) { |
523 | 523 | list($name, $value) = explode(':', $header); |
524 | 524 | if (array_key_exists($name, $responseHeaders) === false) { |