Skip to content

Commit 50fc1eb

Browse files
Sammyjo20github-actions[bot]
authored andcommitted
Apply Code Style Fixes
1 parent 02177c3 commit 50fc1eb

File tree

7 files changed

+14
-17
lines changed

7 files changed

+14
-17
lines changed

src/Http/Fixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace Sammyjo20\Saloon\Http;
44

55
use Sammyjo20\Saloon\Helpers\Storage;
6+
use Sammyjo20\Saloon\Data\FixtureData;
67
use Sammyjo20\Saloon\Helpers\MockConfig;
78
use Sammyjo20\Saloon\Exceptions\FixtureMissingException;
89
use Sammyjo20\Saloon\Exceptions\DirectoryNotFoundException;
9-
use Sammyjo20\Saloon\Data\FixtureData;
1010

1111
class Fixture
1212
{

src/Http/Middleware/FixtureRecorderMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Sammyjo20\Saloon\Http\Fixture;
66
use Psr\Http\Message\RequestInterface;
7-
use Psr\Http\Message\ResponseInterface;
87
use Sammyjo20\Saloon\Data\FixtureData;
8+
use Psr\Http\Message\ResponseInterface;
99

1010
class FixtureRecorderMiddleware
1111
{

tests/Feature/MockRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
use League\Flysystem\Filesystem;
4-
use League\Flysystem\Local\LocalFilesystemAdapter;
54
use Sammyjo20\Saloon\Http\Fixture;
65
use Sammyjo20\Saloon\Http\MockResponse;
76
use Sammyjo20\Saloon\Clients\MockClient;
87
use Sammyjo20\Saloon\Http\SaloonRequest;
8+
use League\Flysystem\Local\LocalFilesystemAdapter;
99
use Sammyjo20\Saloon\Tests\Fixtures\Requests\UserRequest;
1010
use Sammyjo20\Saloon\Tests\Fixtures\Requests\ErrorRequest;
1111
use Sammyjo20\Saloon\Tests\Fixtures\Connectors\TestConnector;
@@ -418,7 +418,7 @@ function (SaloonRequest $request): MockResponse {
418418
}
419419

420420
return MockResponse::fixture('other');
421-
}
421+
},
422422
]);
423423

424424
expect($filesystem->fileExists('user.json'))->toBeFalse();

tests/Pest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
|
2525
*/
2626

27-
use Sammyjo20\Saloon\Helpers\MockConfig;
2827

2928
expect()->extend('toBeOne', function () {
3029
return $this->toBe(1);

tests/Unit/FixtureDataTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
$data = [
1010
'statusCode' => 200,
1111
'headers' => [
12-
'Content-Type' => 'application/json'
12+
'Content-Type' => 'application/json',
1313
],
1414
'data' => [
15-
'name' => 'Sam'
15+
'name' => 'Sam',
1616
],
1717
];
1818

@@ -27,10 +27,10 @@
2727
$data = [
2828
'statusCode' => 200,
2929
'headers' => [
30-
'Content-Type' => 'application/json'
30+
'Content-Type' => 'application/json',
3131
],
3232
'data' => [
33-
'name' => 'Sam'
33+
'name' => 'Sam',
3434
],
3535
];
3636

@@ -44,10 +44,10 @@
4444
$data = [
4545
'statusCode' => 200,
4646
'headers' => [
47-
'Content-Type' => 'application/json'
47+
'Content-Type' => 'application/json',
4848
],
4949
'data' => [
50-
'name' => 'Sam'
50+
'name' => 'Sam',
5151
],
5252
];
5353

tests/Unit/FixtureMockResponseTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3+
use Sammyjo20\Saloon\Http\MockResponse;
34
use Sammyjo20\Saloon\Clients\MockClient;
4-
use Sammyjo20\Saloon\Exceptions\DirectoryNotFoundException;
5-
use Sammyjo20\Saloon\Exceptions\FixtureMissingException;
65
use Sammyjo20\Saloon\Helpers\MockConfig;
7-
use Sammyjo20\Saloon\Http\MockResponse;
6+
use Sammyjo20\Saloon\Exceptions\FixtureMissingException;
87
use Sammyjo20\Saloon\Tests\Fixtures\Requests\UserRequest;
8+
use Sammyjo20\Saloon\Exceptions\DirectoryNotFoundException;
99

1010
test('you can change the default fixture path', function () {
1111
expect(MockConfig::getFixturePath())->toEqual('tests/Fixtures/Saloon');
@@ -36,5 +36,3 @@
3636

3737
UserRequest::make()->send($mockClient);
3838
})->throws(FixtureMissingException::class, 'The fixture "example.json" could not be found in storage.');
39-
40-

tests/Unit/StorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
use League\Flysystem\Filesystem;
4+
use Sammyjo20\Saloon\Helpers\Storage;
45
use League\Flysystem\Local\LocalFilesystemAdapter;
56
use Sammyjo20\Saloon\Exceptions\DirectoryNotFoundException;
6-
use Sammyjo20\Saloon\Helpers\Storage;
77

88
test('it will throw an exception if the base directory does not exist', function () {
99
new Storage('example');

0 commit comments

Comments
 (0)