Skip to content

Commit aed1e8f

Browse files
Format code
1 parent 7661883 commit aed1e8f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public function __construct(
2626
RequestFactoryInterface $requestFactory,
2727
StreamFactoryInterface $streamFactory,
2828
array $config
29-
)
30-
{
29+
) {
3130
if (empty($config)) {
3231
throw new InvalidArgumentException("Configuration cannot be empty!");
3332
}

tests/ClientTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ public function test_it_deals_with_unauthorized_error()
447447
$client = new Client($http, $factory, $factory, ["apiKey" => "key"]);
448448

449449
$this->assertEquals(
450-
new CallResult(false, false, 0, 0, ['You are not authorized to \'GET\' the path \'/tracking/snippet\' with this API Key. You need the permission: GetTrackingSnippet.'], null),
450+
new CallResult(false, false, 0, 0,
451+
['You are not authorized to \'GET\' the path \'/tracking/snippet\' with this API Key. You need the permission: GetTrackingSnippet.'],
452+
null),
451453
$client->addEvent(Event::forUser("login", "1"))
452454
);
453455
}
@@ -456,7 +458,8 @@ public function test_it_adds_rate_limit_information()
456458
{
457459
$factory = new Psr17Factory();
458460
$json = '{"message":"The data is correctly stored.","meta":{"status":201,"requestId":"01ETG3HQ4JY4HNNZ84FBJM3CSC"}}';
459-
$http = new HttpClientFixed(new Response(201, ["x-ratelimit-remaining" => "1999", "x-ratelimit-limit" => "2000"], $json));
461+
$http = new HttpClientFixed(new Response(201,
462+
["x-ratelimit-remaining" => "1999", "x-ratelimit-limit" => "2000"], $json));
460463
$client = new Client($http, $factory, $factory, ["apiKey" => "key"]);
461464

462465
$this->assertEquals(

0 commit comments

Comments
 (0)