Skip to content

Commit 4703774

Browse files
CS fixes
1 parent 0366fe9 commit 4703774

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Exception/HttpExceptionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response)
6161
$separator = isset($body['hydra:title'], $body['hydra:description']) ? "\n\n" : '';
6262
$message = ($body['hydra:title'] ?? '').$separator.($body['hydra:description'] ?? '');
6363
} elseif ((isset($body['title']) || isset($body['detail']))
64-
&& (is_scalar($body['title'] ?? '') && is_scalar($body['detail'] ?? ''))) {
64+
&& (\is_scalar($body['title'] ?? '') && \is_scalar($body['detail'] ?? ''))) {
6565
// see RFC 7807 and https://jsonapi.org/format/#error-objects
6666
$separator = isset($body['title'], $body['detail']) ? "\n\n" : '';
6767
$message = ($body['title'] ?? '').$separator.($body['detail'] ?? '');

HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class HttpClient
3030
public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
3131
{
3232
if (\extension_loaded('curl')) {
33-
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
33+
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || \ini_get('curl.cainfo') || \ini_get('openssl.cafile') || \ini_get('openssl.capath')) {
3434
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
3535
}
3636

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private static function prepareRequest(?string $method, ?string $url, array $opt
160160

161161
// Finalize normalization of options
162162
$options['http_version'] = (string) ($options['http_version'] ?? '') ?: null;
163-
if (0 > $options['timeout'] = (float) ($options['timeout'] ?? ini_get('default_socket_timeout'))) {
163+
if (0 > $options['timeout'] = (float) ($options['timeout'] ?? \ini_get('default_socket_timeout'))) {
164164
$options['timeout'] = 172800.0; // 2 days
165165
}
166166

0 commit comments

Comments
 (0)