Passed
Push — master ( 5d0397...4e642f )
by Daimona
01:52
created
src/Request/CurlRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.