Skip to content

Commit 992d84c

Browse files
committed
Fix CS
1 parent 4703774 commit 992d84c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DataCollector/HttpClientDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function registerClient(string $name, TraceableHttpClient $client)
3737
*
3838
* @param \Throwable|null $exception
3939
*/
40-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
40+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4141
{
4242
$this->reset();
4343

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private static function mergeDefaultOptions(array $options, array $defaultOption
195195

196196
$options += $defaultOptions;
197197

198-
foreach (isset(self::$emptyDefaults) ? self::$emptyDefaults : [] as $k => $v) {
198+
foreach (self::$emptyDefaults ?? [] as $k => $v) {
199199
if (!isset($options[$k])) {
200200
$options[$k] = $v;
201201
}

Response/CurlResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private static function perform(ClientState $multi, array &$responses = null): v
292292
$id = (int) $ch = $info['handle'];
293293
$waitFor = @curl_getinfo($ch, \CURLINFO_PRIVATE) ?: '_0';
294294

295-
if (\in_array($result, [\CURLE_SEND_ERROR, \CURLE_RECV_ERROR, /*CURLE_HTTP2*/ 16, /*CURLE_HTTP2_STREAM*/ 92], true) && $waitFor[1] && 'C' !== $waitFor[0]) {
295+
if (\in_array($result, [\CURLE_SEND_ERROR, \CURLE_RECV_ERROR, /* CURLE_HTTP2 */ 16, /* CURLE_HTTP2_STREAM */ 92], true) && $waitFor[1] && 'C' !== $waitFor[0]) {
296296
curl_multi_remove_handle($multi->handle, $ch);
297297
$waitFor[1] = (string) ((int) $waitFor[1] - 1); // decrement the retry counter
298298
curl_setopt($ch, \CURLOPT_PRIVATE, $waitFor);

0 commit comments

Comments
 (0)