@@ -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 | |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | * Build cURL option. |
| 184 | 184 | * |
| 185 | 185 | * @param int|string $option |
| 186 | - * @param mixed $value |
|
| 186 | + * @param string $value |
|
| 187 | 187 | * |
| 188 | 188 | * @return \Jgut\Spiral\Option |
| 189 | 189 | * |
@@ -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,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 | |
@@ -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 | |
@@ -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 | |