@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * @param array $vars |
| 66 | 66 | * @param array $flags |
| 67 | 67 | * |
| 68 | - * @return \Psr\Http\Message\RequestInterface |
|
| 68 | + * @return ResponseInterface |
|
| 69 | 69 | */ |
| 70 | 70 | public function request( |
| 71 | 71 | RequestInterface $request, |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | { |
| 315 | 315 | switch ($option) { |
| 316 | 316 | case CURLOPT_HTTP_VERSION: |
| 317 | - $optionClass->setCallback(function ($value) { |
|
| 317 | + $optionClass->setCallback(function($value) { |
|
| 318 | 318 | $value = number_format((float) $value, 1, '.', ''); |
| 319 | 319 | |
| 320 | 320 | if (!preg_match('/^1.(0|1)$/', $value)) { |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | break; |
| 327 | 327 | |
| 328 | 328 | case CURLOPT_COOKIE: |
| 329 | - $optionClass->setCallback(function ($value) { |
|
| 329 | + $optionClass->setCallback(function($value) { |
|
| 330 | 330 | if (is_array($value)) { |
| 331 | 331 | $value = http_build_query($value, '', '; '); |
| 332 | 332 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * |
|
| 7 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Jgut\Spiral\Option; |
| 11 | 11 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | $this->options = array_filter( |
| 109 | 109 | $this->options, |
| 110 | - function ($transportOption) use ($option) { |
|
| 110 | + function($transportOption) use ($option) { |
|
| 111 | 111 | /** @var \Jgut\Spiral\Option $transportOption */ |
| 112 | 112 | return !($transportOption->getOption() === $option); |
| 113 | 113 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * |
|
| 7 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Jgut\Spiral\Transport; |
| 11 | 11 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | <!doctype html> |
| 86 | 86 | <html> |
| 87 | 87 | </html> |
| 88 | -RESP; |
|
| 88 | +resp; |
|
| 89 | 89 | $transferInfo = [ |
| 90 | 90 | 'header_size' => 452, |
| 91 | 91 | 'http_code' => 200, |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $option = new OptionCallback(CURLOPT_HTTPAUTH); |
| 39 | 39 | |
| 40 | - $option->setCallback(function ($value) { |
|
| 40 | + $option->setCallback(function($value) { |
|
| 41 | 41 | return $value . ' aaa'; |
| 42 | 42 | }); |
| 43 | 43 | $option->setValue('bbb'); |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | - * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Spiral: PSR7 aware cURL client (https://github.com/juliangut/spiral) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/spiral for the canonical source repository |
|
| 6 | + * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Jgut\Spiral\Transport; |
| 10 | 10 | |