Skip to content

Commit a56d17e

Browse files
committed
Linter fix
1 parent 3aa606e commit a56d17e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public function addHeader(string $key, string $value): self
6262
public function call(string $method, string $path = '', array $headers = [], array $params = [], bool $decode = true, callable $callback = null): array
6363
{
6464
$headers = array_merge($this->headers, $headers);
65-
if(!\array_key_exists('x-executor-response-format', $headers)) {
65+
if (!\array_key_exists('x-executor-response-format', $headers)) {
6666
$headers['x-executor-response-format'] = $this->version;
6767
}
68-
68+
6969
$ch = curl_init($this->endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : ''));
7070

7171
if (!$ch) {

tests/ExecutorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,15 @@ public function testExecute(): void
382382
$response = $this->client->call(Client::METHOD_POST, '/runtimes/test-exec/executions');
383383
$this->assertEquals(200, $response['headers']['status-code']);
384384
$this->assertEquals(200, $response['body']['statusCode']);
385-
385+
386386
// Example of expected headers:
387387
// "[{"key":"x-my-cookie","value":"cookieValue"},{"key":"content-type","value":"application\/json; charset=utf-8"},{"key":"server","value":"swoole-http-server"},{"key":"date","value":"Tue, 02 Sep 2025 13:43:32 GMT"},{"key":"connection","value":"keep-alive"},{"key":"content-length","value":"235"}]"
388388
$headers = [];
389389
foreach (\json_decode($response['body']['headers'], true) as $pair) {
390390
$headers[$pair['key']] = $pair['value'];
391391
}
392392
$this->assertEquals('cookieValue', $headers['x-my-cookie']);
393-
393+
394394
/** Execute with intentionally old version to ensure response filter */
395395
$response = $this->client->call(Client::METHOD_POST, '/runtimes/test-exec/executions', [
396396
'x-executor-response-format' => '0.8.6'

0 commit comments

Comments
 (0)