@@ -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 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @param LoggerInterface $logger |
| 21 | 21 | * @param string $domain |
| 22 | 22 | */ |
| 23 | - public function __construct( LoggerInterface $logger, string $domain ) { |
|
| 23 | + public function __construct ( LoggerInterface $logger, string $domain ) { |
|
| 24 | 24 | $this->logger = $logger; |
| 25 | 25 | $this->domain = $domain; |
| 26 | 26 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param callable $cookiesCallback |
| 33 | 33 | * @return RequestBase |
| 34 | 34 | */ |
| 35 | - public function createRequest( array $params, array $cookies, callable $cookiesCallback ) { |
|
| 35 | + public function createRequest ( array $params, array $cookies, callable $cookiesCallback ) { |
|
| 36 | 36 | $ret = extension_loaded( 'curl' ) |
| 37 | 37 | ? new CurlRequest( $this->logger, $params, $this->domain, $cookiesCallback ) |
| 38 | 38 | : new NativeRequest( $this->logger, $params, $this->domain, $cookiesCallback ); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @phan-param array<int|string|bool> $params |
| 48 | 48 | * @return RequestBase |
| 49 | 49 | */ |
| 50 | - public function createStandaloneRequest( array $params ) { |
|
| 50 | + public function createStandaloneRequest ( array $params ) { |
|
| 51 | 51 | /** @param string[] $newCookies */ |
| 52 | 52 | $cookiesCallback = function ( array $newCookies ) { |
| 53 | 53 | $newCookies = array_map( 'trim', $newCookies ); |