diff --git a/src/Http/SaloonConnector.php b/src/Http/SaloonConnector.php index dd72b329..b212234d 100644 --- a/src/Http/SaloonConnector.php +++ b/src/Http/SaloonConnector.php @@ -2,14 +2,14 @@ namespace Sammyjo20\Saloon\Http; -use Sammyjo20\Saloon\Interfaces\SaloonConnectorInterface; -use Sammyjo20\Saloon\Traits\CollectsConfig; use Sammyjo20\Saloon\Traits\CollectsData; -use Sammyjo20\Saloon\Traits\CollectsHandlers; +use Sammyjo20\Saloon\Traits\CollectsConfig; use Sammyjo20\Saloon\Traits\CollectsHeaders; -use Sammyjo20\Saloon\Traits\CollectsInterceptors; -use Sammyjo20\Saloon\Traits\CollectsQueryParams; +use Sammyjo20\Saloon\Traits\CollectsHandlers; use Sammyjo20\Saloon\Traits\HasCustomResponses; +use Sammyjo20\Saloon\Traits\CollectsQueryParams; +use Sammyjo20\Saloon\Traits\CollectsInterceptors; +use Sammyjo20\Saloon\Interfaces\SaloonConnectorInterface; abstract class SaloonConnector implements SaloonConnectorInterface { diff --git a/src/Http/SaloonRequest.php b/src/Http/SaloonRequest.php index 1d2fad02..43052912 100644 --- a/src/Http/SaloonRequest.php +++ b/src/Http/SaloonRequest.php @@ -3,17 +3,17 @@ namespace Sammyjo20\Saloon\Http; use ReflectionClass; -use Sammyjo20\Saloon\Exceptions\SaloonInvalidConnectorException; -use Sammyjo20\Saloon\Exceptions\SaloonMethodNotFoundException; -use Sammyjo20\Saloon\Interfaces\SaloonRequestInterface; -use Sammyjo20\Saloon\Traits\CollectsConfig; use Sammyjo20\Saloon\Traits\CollectsData; -use Sammyjo20\Saloon\Traits\CollectsHandlers; +use Sammyjo20\Saloon\Traits\SendsRequests; +use Sammyjo20\Saloon\Traits\CollectsConfig; use Sammyjo20\Saloon\Traits\CollectsHeaders; -use Sammyjo20\Saloon\Traits\CollectsInterceptors; -use Sammyjo20\Saloon\Traits\CollectsQueryParams; +use Sammyjo20\Saloon\Traits\CollectsHandlers; use Sammyjo20\Saloon\Traits\HasCustomResponses; -use Sammyjo20\Saloon\Traits\SendsRequests; +use Sammyjo20\Saloon\Traits\CollectsQueryParams; +use Sammyjo20\Saloon\Traits\CollectsInterceptors; +use Sammyjo20\Saloon\Interfaces\SaloonRequestInterface; +use Sammyjo20\Saloon\Exceptions\SaloonMethodNotFoundException; +use Sammyjo20\Saloon\Exceptions\SaloonInvalidConnectorException; abstract class SaloonRequest implements SaloonRequestInterface { diff --git a/src/Traits/HasCustomResponses.php b/src/Traits/HasCustomResponses.php index 628d590f..9f20ef3c 100644 --- a/src/Traits/HasCustomResponses.php +++ b/src/Traits/HasCustomResponses.php @@ -3,10 +3,10 @@ namespace Sammyjo20\Saloon\Traits; use ReflectionClass; -use Sammyjo20\Saloon\Exceptions\SaloonInvalidConnectorException; -use Sammyjo20\Saloon\Exceptions\SaloonInvalidResponseClassException; use Sammyjo20\Saloon\Http\SaloonRequest; use Sammyjo20\Saloon\Http\SaloonResponse; +use Sammyjo20\Saloon\Exceptions\SaloonInvalidConnectorException; +use Sammyjo20\Saloon\Exceptions\SaloonInvalidResponseClassException; trait HasCustomResponses { diff --git a/tests/Unit/MockResponseTest.php b/tests/Unit/MockResponseTest.php index 1fca7c52..77055bae 100644 --- a/tests/Unit/MockResponseTest.php +++ b/tests/Unit/MockResponseTest.php @@ -7,8 +7,8 @@ use Sammyjo20\Saloon\Tests\Resources\Responses\UserData; use Sammyjo20\Saloon\Tests\Resources\Requests\MockRequest; use Sammyjo20\Saloon\Tests\Resources\Requests\UserRequest; -use Sammyjo20\Saloon\Tests\Resources\Requests\UserRequestWithCustomResponse; use Sammyjo20\Saloon\Tests\Resources\Responses\UserResponse; +use Sammyjo20\Saloon\Tests\Resources\Requests\UserRequestWithCustomResponse; test('pulling a response from the sequence will return the correct response', function () { $responseA = new MockResponse([], 200);