@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare( strict_types=1 ); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace BotRiconferme\Request; |
4 | 4 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @inheritDoc |
14 | 14 | * @throws APIRequestException |
15 | 15 | */ |
16 | - protected function reallyMakeRequest( string $params ): string { |
|
16 | + protected function reallyMakeRequest ( string $params ): string { |
|
17 | 17 | $curl = curl_init(); |
18 | 18 | if ( $curl === false ) { |
19 | 19 | throw new APIRequestException( 'Cannot open cURL handler.' ); |
@@ -59,11 +59,11 @@ discard block |
||
59 | 59 | * @internal Only used as CB for cURL (CURLOPT_HEADERFUNCTION) |
60 | 60 | * @suppress PhanUnreferencedPublicMethod,PhanUnusedPublicNoOverrideMethodParameter |
61 | 61 | */ |
62 | - public function headersHandler( $ch, string $header ): int { |
|
62 | + public function headersHandler ( $ch, string $header ): int { |
|
63 | 63 | /** @var string[] $bits */ |
64 | 64 | $bits = explode( ':', $header, 2 ); |
65 | - if ( strtolower( trim( $bits[0] ) ) === 'set-cookie' ) { |
|
66 | - $this->saveNewCookie( $bits[1] ); |
|
65 | + if ( strtolower( trim( $bits[ 0 ] ) ) === 'set-cookie' ) { |
|
66 | + $this->saveNewCookie( $bits[ 1 ] ); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return strlen( $header ); |